blob: 933925fdb7bc9abbd94ab9470591dc91dcabb33b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
{{- 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>
{{ range .Params.tags }}
<small><code><a href="{{ "/tags/" | absURL }}{{ . | urlize }}">{{ . }}</a></code></small>
{{ end }}
</p>
{{ .Content }}
{{- end -}}
|