This repository has been archived on 2021-05-20. You can view files and clone it, but cannot push or open issues or pull requests.
blog/layouts/_default/single.html

21 lines
434 B
HTML
Raw Normal View History

2021-05-20 11:31:35 -05:00
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ if eq .Type "blog" }}{{ if not .Params.menu }}
<p>
<i>
<time datetime='{{ .Date.Format "2006-01-02" }}' pubdate>
{{ .Date.Format (default "02 Jan, 2006" .Site.Params.dateFormat) }}
</time>
</i>
</p>
{{ end }}{{ end }}
<content>
{{ .Content }}
</content>
<p>
{{ range (.GetTerms "tags") }}
<a href="{{ .Permalink }}">#{{ .LinkTitle }}</a>
{{ end }}
</p>
{{ end }}