gtm-test-site/themes/papercss-hugo-theme/layouts/partials/post-list.html

12 lines
372 B
HTML
Raw Permalink Normal View History

2024-01-23 17:47:24 +03:00
<h1>{{ .Title }}</h1>
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
{{ range $pages.ByPublishDate.Reverse }}
<h2 class="post-list {{ if ne .Params.show_summary false }}summary{{ end }}">
<a href="{{ .RelPermalink }}">
{{ .Title }}
</a>
</h2>
{{ if ne .Params.show_summary false }}
{{ .Summary }}
{{ end }}
{{ end }}