Stefan Bethke
c06c8603ef
All checks were successful
/ build (push) Successful in 13s
* Add a post date to each post * Do not show the post date for tours * Only show posts tagged "current-event" on the home page (hiding 37c3 entries) * Use a custom template for sorting the summary list by title (instead of the default by date)
15 lines
353 B
HTML
15 lines
353 B
HTML
{{ define "title" }}{{ site.Title }}{{ end }}
|
|
|
|
{{ define "main" -}}
|
|
<main class="main layout__main">
|
|
{{ .Content }}
|
|
|
|
{{ $pages := .Site.RegularPages.RelatedTo (keyVals "tags" "current-event") -}}
|
|
{{ $paginator := .Paginate $pages -}}
|
|
{{ range $paginator.Pages -}}
|
|
{{ .Render "summary" }}
|
|
{{ end -}}
|
|
|
|
{{ partial "pagination.html" . }}
|
|
</main>
|
|
{{ end -}}
|