mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 03:36:41 +02:00
Update style of grouping headers in blog and index
This commit is contained in:
@@ -11,7 +11,9 @@
|
||||
<ul>
|
||||
{{ range first 5 (.Data.Pages.GroupByDate "Jan, 2006" "desc")}}
|
||||
{{ $nbPages := len (where .Pages "Section" "blog")}}
|
||||
{{ if ne $nbPages 0}}{{ .Key }}{{ end }}
|
||||
{{ if ne $nbPages 0}}
|
||||
<li class="groupby">{{ .Key }}</li>
|
||||
{{ end }}
|
||||
{{ range where .Pages.ByPublishDate "Section" "blog"}}
|
||||
{{ partial "li.html" . }}
|
||||
{{ end }}
|
||||
|
Reference in New Issue
Block a user