diff options
author | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-09-20 22:30:50 +0700 |
---|---|---|
committer | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-09-20 22:30:50 +0700 |
commit | b850414850a49d47ccf1a00d3fc9731fc7249361 (patch) | |
tree | 8b43b54d5a21ad623feb64a0628ab37fe7f9798c /layouts | |
parent | ccdbf7903675335d17793e00199651362e3e8388 (diff) | |
download | blog-b850414850a49d47ccf1a00d3fc9731fc7249361.tar.gz |
Localize Section names
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/list.html | 3 | ||||
-rw-r--r-- | layouts/index.html | 2 | ||||
-rw-r--r-- | layouts/partials/languageSelect.html | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 59eb537..855ed91 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -5,8 +5,7 @@ <div class="articles h-feed"> <h1 class="post-title">{{ i18n .Title }}</h1> - {{ if .Params.no_feed }} - {{ else}} + {{ if not .Params.no_feed }} {{ range .Page.CurrentSection.Pages }} <div class="post-short-list h-entry"> <header class="post-header"> diff --git a/layouts/index.html b/layouts/index.html index 414d5e6..e1bfe7f 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -3,7 +3,7 @@ {{ .Content }} <ul> {{ range .Site.Sections }} - <li> <a href="{{ .Permalink }}">{{ .Title }}</a> </li> + <li> <a href="{{ .Permalink }}">{{ i18n .Title }}</a> </li> {{ end }} </ul> </div> diff --git a/layouts/partials/languageSelect.html b/layouts/partials/languageSelect.html index a4d2b92..ce67210 100644 --- a/layouts/partials/languageSelect.html +++ b/layouts/partials/languageSelect.html @@ -3,7 +3,7 @@ <ul> {{ range .Translations }} <li> - <a href="{{ .Permalink }}">{{ .Language.LanguageName }}: {{ .Title }}{{ if .IsPage }}{{ end }}</a> + <a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a> </li> {{ end }} </ul> |