Use site.Home.Permalink instead of param
This commit is contained in:
parent
045c2e3495
commit
6d88b28c14
@ -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.
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user