website/themes/datacoop2020/layouts/post/single.html
Benjamin Bach 2121cdca5f
Some checks reported errors
continuous-integration/drone/pr Build encountered an error
Colors and fonts for the new data.coop theme
2020-04-05 23:03:14 +02:00

14 lines
427 B
HTML

{{- define "main" -}}
<h1>{{ .Title | markdownify }}</h1>
<p>
<small class="text-secondary">
{{ $customDateFormat := "January 2, 2006" }}
{{ with .Site.Params.customDateFormat }}{{ $customDateFormat = . }}{{ end }}
{{ .PublishDate.Format $customDateFormat }}{{ if gt .Lastmod .PublishDate }}, updated {{ .Lastmod.Format $customDateFormat }}{{ end }}
</small>
{{ partial "tags" . }}
</p>
{{ .Content }}
{{- end -}}