Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/eshlox/simplicity.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrzemysław Kołodziejczyk <eshlox@vertolabs.com>2019-02-10 21:48:04 +0300
committerPrzemysław Kołodziejczyk <eshlox@vertolabs.com>2019-02-10 21:48:04 +0300
commit4dfb51fbcaef178d132697aa16b6ee545891ed80 (patch)
treeb9f9b1c490e0534c199175c02f8c5148ce4e1736
parent7dd4635bf75675b32a1fa1c5333ae63b0e959ba3 (diff)
Use correct language (from post meta)v2.1.0
-rw-r--r--layouts/partials/posts_list.html30
1 files changed, 15 insertions, 15 deletions
diff --git a/layouts/partials/posts_list.html b/layouts/partials/posts_list.html
index c49b71b..0bf3f9b 100644
--- a/layouts/partials/posts_list.html
+++ b/layouts/partials/posts_list.html
@@ -1,8 +1,8 @@
<h2>
{{ if eq .Kind "section" }}
- {{ i18n "postsList" . }}
+ {{ i18n "postsList" . }}
{{ else }}
- {{ i18n "postsAbout" }} {{ .Title }}
+ {{ i18n "postsAbout" }} {{ .Title }}
{{ end }}
<small>
- <a href="{{ .RSSLink | relURL }}" class="rss" title="RSS">RSS</a>
@@ -10,16 +10,16 @@
</h2>
<hr>
{{ range (where .Data.Pages "Type" "posts").GroupByDate "2006" }}
- <h3 id="{{ .Key }}">
- {{ .Key }}
- </h3>
- <ul class="posts-list">
- {{ range .Pages }}
- <li>
- <span class="date">{{ .Date.Format "January 2, 2006" }}</span>
- <a href="{{ .RelPermalink | relURL }}" title="{{ .Title }}">{{ .Title }}</a>
- {{ if .Site.Params.displayPostLanguage }}<span class="lang">/ {{ .Lang }}</span>{{ end }}
- </li>
- {{ end }}
- </ul>
-{{ end }}
+<h3 id="{{ .Key }}">
+ {{ .Key }}
+</h3>
+<ul class="posts-list">
+ {{ range .Pages }}
+ <li>
+ <span class="date">{{ .Date.Format "January 2, 2006" }}</span>
+ <a href="{{ .RelPermalink | relURL }}" title="{{ .Title }}">{{ .Title }}</a>
+ {{ if .Site.Params.displayPostLanguage }}<span class="lang">/ {{ .Params.language }}</span>{{ end }}
+ </li>
+ {{ end }}
+</ul>
+{{ end }} \ No newline at end of file