mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 04:13:17 -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" }}
|
||||
<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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user