Skip to content

Commit

Permalink
Use correct language (from post meta)
Browse files Browse the repository at this point in the history
  • Loading branch information
eshlox committed Feb 10, 2019
1 parent 7dd4635 commit 4dfb51f
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions layouts/partials/posts_list.html
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
<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>
</small>
</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 }}

0 comments on commit 4dfb51f

Please sign in to comment.