From 2ae8ee84ee289b8ad99b7ff5d1e1cbcc08510fc3 Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson Date: Wed, 14 Aug 2024 14:27:12 +0200 Subject: [PATCH] Min version is now v0.124.0. Using site.Config.Services.GoogleAnalytics.ID, hugo.IsMultilingual and hugo.yaml etc. --- exampleSite/{config.yaml => hugo.yaml} | 0 config.yaml => hugo.yaml | 2 +- layouts/_default/baseof.html | 2 +- layouts/partials/mobilemenu.html | 2 +- layouts/partials/tracking.html | 5 ++--- scripts/set_up_new_site.sh | 6 +++--- theme.toml | 2 +- 7 files changed, 9 insertions(+), 10 deletions(-) rename exampleSite/{config.yaml => hugo.yaml} (100%) rename config.yaml => hugo.yaml (68%) diff --git a/exampleSite/config.yaml b/exampleSite/hugo.yaml similarity index 100% rename from exampleSite/config.yaml rename to exampleSite/hugo.yaml diff --git a/config.yaml b/hugo.yaml similarity index 68% rename from config.yaml rename to hugo.yaml index 7ba4cae..c22babd 100644 --- a/config.yaml +++ b/hugo.yaml @@ -1,4 +1,4 @@ module: hugoVersion: extended: true - min: "0.93.0" + min: "0.124.0" diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index fc861fe..9ad2293 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -28,7 +28,7 @@

{{ site.Title }}

-{{ if site.IsMultiLingual }}{{ partial "language-selector.html" . }}{{ end -}} +{{ if hugo.IsMultilingual }}{{ partial "language-selector.html" . }}{{ end -}} {{ if $.Param "menuinheader" }}{{ partial "menu.html" . }}{{ end -}}
diff --git a/layouts/partials/mobilemenu.html b/layouts/partials/mobilemenu.html index b2059ab..b1506e9 100644 --- a/layouts/partials/mobilemenu.html +++ b/layouts/partials/mobilemenu.html @@ -9,7 +9,7 @@