From 300cf058e1adb42138cfb78010189bc730ce1847 Mon Sep 17 00:00:00 2001 From: huantian Date: Tue, 13 Jun 2023 19:40:43 +0000 Subject: fix: change use of .Site.Language.Params.params -> .Site.Params .Site.Language.Params was deprecated in Hugo 0.112.0, see https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120 --- layouts/partials/nav.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts/partials/nav.html') diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 3f1a416..a16fec3 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -4,7 +4,7 @@ {{ with .Site.Social.email }} Email {{ end }} -RSS +RSS {{ $translations := dict }} -- cgit v1.2.3 From dc1d2cf057cbdddbbc0d61e5959672f6fe63038f Mon Sep 17 00:00:00 2001 From: Caio Lente <7017340+clente@users.noreply.github.com> Date: Fri, 29 Sep 2023 20:56:09 -0300 Subject: Fix #2 --- exampleSite/config.toml | 4 ++-- layouts/partials/nav.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'layouts/partials/nav.html') diff --git a/exampleSite/config.toml b/exampleSite/config.toml index cecd754..3b68b53 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -33,7 +33,7 @@ enableRobotsTXT = true LanguageCode = "en-US" contentDir = "content" [languages.en.params] - blogPath = "/blog" # Path to your blog section (used by RSS) + blogPath = "blog" # Path to your blog section (used by RSS) madeWith = "Made with [Bear Cub](https://github.com/clente/hugo-bearcub)" [languages.pt] title = "Bear Cub" @@ -41,7 +41,7 @@ enableRobotsTXT = true LanguageCode = "pt-BR" contentDir = "content.pt" [languages.pt.params] - blogPath = "/pt/blog" # Path to your blog section (used by RSS) + blogPath = "blog" # Path to your blog section (used by RSS) madeWith = "Feito com [Bear Cub](https://github.com/clente/hugo-bearcub)" [params] diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index a16fec3..2cc03a2 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -1,10 +1,10 @@ {{ range .Site.Menus.main.ByWeight }} - {{ .Name }} + {{ .Name }} {{ end }} {{ with .Site.Social.email }} Email {{ end }} -RSS +RSS {{ $translations := dict }} -- cgit v1.2.3