diff options
Diffstat (limited to 'layouts/post/single.html')
-rw-r--r-- | layouts/post/single.html | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/layouts/post/single.html b/layouts/post/single.html index 9e70fe5..933925f 100644 --- a/layouts/post/single.html +++ b/layouts/post/single.html @@ -1,11 +1,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></p> +<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 -}}
\ No newline at end of file |