contrast-hugo/layouts/_default/single.html

30 lines
665 B
HTML
Raw Normal View History

2019-07-15 09:04:11 -04:00
{{ define "main" }}
<article>
<header>
2019-12-21 16:27:34 -05:00
<h1>{{ .Title }}</h1>
2024-06-29 13:27:32 -04:00
<!-- Created Date -->
{{- $pubdate := .PublishDate.Format "January 02, 2006" }}
Created:
<time datetime="{{ .PublishDate }}" title="{{ .PublishDate }}">
{{ $pubdate }}
</time>
<!-- Last Updated Date -->
{{- if .Lastmod }}
{{- $lastmod := .Lastmod.Format "January 02, 2006" }}
{{- if ne $lastmod $pubdate }}
<div class="post-info-last-mod">
(Updated:
<time datetime="{{ .Lastmod }}" title="{{ .Lastmod }}">
{{ $lastmod }}
</time>)
</div>
{{- end }}
{{- end }}
2019-07-15 09:04:11 -04:00
</header>
{{ .Content }}
</article>
2019-07-18 17:01:53 -04:00
{{ end }}