mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 03:36:41 +02:00

committed by
Michael Noronha

parent
915f2000ff
commit
944fd12cea
@@ -14,12 +14,14 @@
|
|||||||
{{ $sectionTitle := .Title }}
|
{{ $sectionTitle := .Title }}
|
||||||
<ul>
|
<ul>
|
||||||
{{ range .Data.Pages.GroupByDate "Jan, 2006" "desc"}}
|
{{ range .Data.Pages.GroupByDate "Jan, 2006" "desc"}}
|
||||||
|
{{ if not (and (eq (len .Pages) 1) (eq (index .Pages 0).Title $sectionTitle)) }}
|
||||||
<li class="groupby">{{ .Key }}</li>
|
<li class="groupby">{{ .Key }}</li>
|
||||||
{{ range sort .Pages "Date" "desc" }}
|
{{ range sort .Pages "Date" "desc" }}
|
||||||
{{ if (not (eq $sectionTitle .Title)) }}
|
{{ if (not (eq $sectionTitle .Title)) }}
|
||||||
{{ partial "li.html" . }}
|
{{ partial "li.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user