website/themes/datacoop2020/layouts/index.html
Benjamin Bach 16fab68e61
All checks were successful
continuous-integration/drone/pr Build is passing
Use new-new theme, still needs a lot of clean-up removing old-stuff
2022-11-09 02:03:14 +01:00

26 lines
671 B
HTML

{{ define "main" }}
<h1>{{.Title}}</h1>
{{.Content}}
{{ .Site.Params.mainSections }}
{{ $pages := where site.RegularPages "Type" "in" ("") }}
{{ range $pages.ByPublishDate.Reverse }}
<p>
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
{{ $customDateFormat := "January 2, 2006" }}
{{ with .Site.Params.customDateFormat }}{{ $customDateFormat = . }}{{ end }}
<br>
<small class="text-secondary">{{ .PublishDate.Format $customDateFormat }}</small>
{{ partial "tags" . }}
{{ if eq .Site.Params.showPostSummary true }}
<br>
{{ .Summary }}
{{ end }}
</p>
{{ end }}
{{ end }}