Files
Pim van Pelt ebf34c65a1
All checks were successful
continuous-integration/drone/push Build is passing
Switch to IPng theme
2024-08-13 02:25:52 +02:00

28 lines
820 B
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{{ define "main" }}
<main>
<h1 class="page-title">{{ .Title }}</h1>
Heres a sitemap of informational articles and papers in reversed chronological order:
{{- if .Pages -}}
{{- $pages := (where .Pages ".Draft" false) -}}
{{- /* Use site config params for posts per page if available, otherwise default */ -}}
{{- with .Site.Params.list.paginate | default .Site.Params.paginate -}}
{{- $pages = $.Paginate $pages . -}}
{{- else -}}
{{- $pages = .Paginate $pages -}}
{{- end -}}
<ul>
{{- range $pages.Pages -}}
<li><a href="{{ .Permalink }}"><time>{{ .Date.Format "2006-01-02"}}</time> - {{.Title}}</a></li>
{{- end -}}
</ul>
{{ partial "pagination.html" . }}
{{- end -}}
</main>
{{ end }}