This repository has been archived on 2021-08-12. You can view files and clone it, but cannot push or open issues/pull-requests.
hugo-bearblog-fork/layouts/_default/single.html

26 lines
562 B
HTML
Raw Permalink Normal View History

2020-08-31 09:40:11 -04:00
{{ define "main" }}
{{ if eq .Type "blog" }}{{ if not .Params.menu }}
<h1>{{ .Title }}</h1>
<p>
2020-12-29 10:19:22 -05:00
<time datetime='{{ .Date.Format "2006-01-02" }}' pubdate>
{{ .Date.Format "02 Jan, 2006" }}
</time>
{{ if .Lastmod }}
{{ if not (eq .Lastmod .Date )}}
<i>
(<b>Updated:</b> {{ dateFormat "2006-01-02" .Lastmod.Local }})
</i>
{{ end }}
{{ end }}
2020-08-31 09:40:11 -04:00
</p>
{{ end }}{{ end }}
<content>
{{ .Content }}
</content>
<p>
{{ range (.GetTerms "tags") }}
<a href="{{ .Permalink }}">#{{ .LinkTitle }}</a>
{{ end }}
</p>
{{ end }}