Add date and tags as a subtitle on pages

This commit is contained in:
BBaoVanC 2021-09-26 20:22:59 -05:00
parent 560a64540a
commit 718efd865e
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A

View File

@ -1,4 +1,12 @@
{{ define "main" }} {{ define "main" }}
<h1>{{ .Title | markdownify }}</h1> <h1>{{ .Title | markdownify }}</h1>
{{ if .Date }}
<time datetime="{{ .Date.Format "2006-01-02" }}" pubdate>
{{ .Date.Format "2006-01-02" }}
</time>
{{ end }}
{{ range (.GetTerms "tags") }}
<a href="{{ .Permalink }}">#{{ .LinkTitle }}</a>
{{ end }}
{{ .Content }} {{ .Content }}
{{ end }} {{ end }}