diff options
author | C. Lente <7017340+clente@users.noreply.github.com> | 2023-02-09 17:31:27 -0300 |
---|---|---|
committer | C. Lente <7017340+clente@users.noreply.github.com> | 2023-02-09 17:31:27 -0300 |
commit | 6d88b28c14979059df16cec340de783d8b536c1c (patch) | |
tree | be6eee765b6b8574b1424dfd26e9bde1c3ef503c | |
parent | 045c2e349504e0e1394f4ca497d8899c1e89ca47 (diff) | |
download | hugo-bearcub-6d88b28c14979059df16cec340de783d8b536c1c.tar.gz hugo-bearcub-6d88b28c14979059df16cec340de783d8b536c1c.tar.bz2 |
Use site.Home.Permalink instead of param
-rw-r--r-- | exampleSite/config.toml | 8 | ||||
-rw-r--r-- | layouts/partials/header.html | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 1541258..fc2c0f9 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -28,16 +28,16 @@ DefaultContentLanguage = "en" contentDir = "content" weight = 1 [languages.en.params] - home = '/' - madeWith = '[Feito de pedra](/posts/sites-de-pedra)' # You can use markdown here if you want to link somewhere + # You can use markdown here if you want to link somewhere + madeWith = '[Feito de pedra](/posts/sites-de-pedra)' [languages.pt] title = "Site Exemplo" languageName = "Português 🇧🇷" contentDir = "content.pt" weight = 2 [languages.pt.params] - home = '/pt' - madeWith = '[Feito de pedra](/posts/sites-de-pedra)' # You can use markdown here if you want to link somewhere + # You can use markdown here if you want to link somewhere + madeWith = '[Feito de pedra](/posts/sites-de-pedra)' [params] # The "description" of your website. This is used in the meta data of your generated html. diff --git a/layouts/partials/header.html b/layouts/partials/header.html index f8e3fd8..dc82280 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,2 +1,2 @@ -<a href="{{ .Site.Language.Params.params.home }}" class="title"><h2>{{ .Site.Title }}</h2></a> +<a href="{{ site.Home.Permalink }}" class="title"><h2>{{ .Site.Title }}</h2></a> <nav>{{- partial "nav.html" . -}}</nav> |