about summary refs log tree commit diff
path: root/layouts
diff options
context:
space:
mode:
authorNgô Ngọc Đức Huy <huyngo@disroot.org>2021-09-20 22:30:50 +0700
committerNgô Ngọc Đức Huy <huyngo@disroot.org>2021-09-20 22:30:50 +0700
commitb850414850a49d47ccf1a00d3fc9731fc7249361 (patch)
tree8b43b54d5a21ad623feb64a0628ab37fe7f9798c /layouts
parentccdbf7903675335d17793e00199651362e3e8388 (diff)
downloadblog-b850414850a49d47ccf1a00d3fc9731fc7249361.tar.gz
Localize Section names
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/list.html3
-rw-r--r--layouts/index.html2
-rw-r--r--layouts/partials/languageSelect.html2
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>