mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2026-10-24 22:13:33 -05:00
Add date and tags as a subtitle on pages
This commit is contained in:
1 file changed
+8
@@ -1,4 +1,12 @@
|
||||
{{ define "main" }}
|
||||
<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 }}
|
||||
{{ end }}
|
||||
Reference in new issue
Block a user