mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-14 19:26:40 +02:00
Allow descriptions on sections besides home (#120)
This commit is contained in:
@@ -4,11 +4,21 @@
|
||||
<div class="content">
|
||||
<div class="posts">
|
||||
<div class="page-heading">{{ .Title }}</div>
|
||||
|
||||
{{ range where .Data.Pages "Title" .Title }}
|
||||
<div class="markdown">
|
||||
<p>{{ .Content }}</p>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ $sectionTitle := .Title }}
|
||||
<ul>
|
||||
{{ range .Data.Pages.GroupByDate "Jan, 2006" "desc"}}
|
||||
<li class="groupby">{{ .Key }}</li>
|
||||
{{ range sort .Pages "Date" "desc" }}
|
||||
{{ if (not (eq $sectionTitle .Title)) }}
|
||||
{{ partial "li.html" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user