mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 19:56:41 +02:00
Add best posts and group by date
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user