Add best posts and group by date

This commit is contained in:
Alexis Tacnet
2017-02-12 17:58:16 +01:00
parent e02bf39694
commit f0527ffada
6 changed files with 45 additions and 22 deletions

View File

@@ -10,16 +10,18 @@
{{ end }}
{{ end }}
</div>
<div class="posts">
{{ if ne (len (where .Data.Pages "Title" "!=" $globalTitle)) 0}}
<div class="page-heading">{{ .Title }}</div>
<ul>
{{ range .Data.Pages.ByPublishDate }}
{{ if ne .Title $globalTitle }}
{{ partial "li.html" . }}
<div class="page-heading">{{ .Title }}</div>
<ul>
{{ range .Data.Pages.ByPublishDate }}
{{ if ne .Title $globalTitle }}
{{ partial "li.html" . }}
{{ end }}
{{ end }}
{{ end }}
</ul>
</ul>
{{ end }}
</div>
</div>
</div>
</section>