mestizo.monster/themes/corazon/layouts/posts/single.html

22 lines
724 B
HTML
Raw Normal View History

{{ define "main" }}
<article>
<h1>{{ .Title }}</h1>
{{ $dateHuman := .Date.Format "January 2, 2006" }}
{{ $dateMachine := .Date.Format "2006-01-02T15:04:05-07:00" }}
{{ $lastUpdated := .Lastmod.Format "January 2, 2006" }}
{{ $lastMachine := .Lastmod.Format "2006-01-02T15:04:05-07:00" }}
<blockquote>
<p><b>first posted:</b> <time datetime="{{ $dateMachine }}">{{ lower $dateHuman }}</time></p>
{{ if ne $lastUpdated $dateHuman }}
<p><b>last updated:</b> <time datetime="{{ $lastMachine }}">{{ lower $lastUpdated }}</time></p>
{{ end }}
</blockquote>
<hr>
<h4>table of contents</h4>
{{ .TableOfContents }}
<hr>
{{ .Content }}
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
</article>
{{ end }}