mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 12:13:19 -06:00
Add date and tags as a subtitle on pages
This commit is contained in:
parent
560a64540a
commit
718efd865e
@ -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 }}
|
||||||
|
Loading…
Reference in New Issue
Block a user