diff --git a/exampleSite/config.toml b/exampleSite/hugo.toml similarity index 96% rename from exampleSite/config.toml rename to exampleSite/hugo.toml index d7af5ae..da185c2 100644 --- a/exampleSite/config.toml +++ b/exampleSite/hugo.toml @@ -16,8 +16,11 @@ enableEmoji = true # See https://github.com/gohugoio/hugo/issues/7228#issuecomment-714490456 ignoreErrors = ["error-remote-getjson"] -disqusShortname = "" -googleAnalytics = "" +[services] +[services.disqus] +shortname = '' +[services.googleAnalytics] +id = '' [outputs] home = ["HTML", "JSON", "RSS"] diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html index cf4ccab..509da3d 100644 --- a/layouts/partials/comments.html +++ b/layouts/partials/comments.html @@ -1,6 +1,6 @@ {{ if (ne .Params.comment false) -}} -{{ if .Site.DisqusShortname }} +{{ if .Site.Config.Services.Disqus.Shortname }} {{ template "_internal/disqus.html" . }} {{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index b4524e0..f246375 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -91,8 +91,7 @@ {{ end }} - -{{ if not .Site.IsServer }} +{{ if not hugo.IsServer }} {{ template "_internal/google_analytics.html" . }} {{ end }} diff --git a/netlify.toml b/netlify.toml index a0c253a..f80c0d4 100644 --- a/netlify.toml +++ b/netlify.toml @@ -5,7 +5,7 @@ [build.environment] HUGO_THEME = "repo" HUGO_THEMESDIR = "/opt/build" - HUGO_VERSION = "0.106.0" + HUGO_VERSION = "0.124.1" [context.production.environment] HUGO_BASEURL = "https://hugo-theme-puppet.netlify.app/"