night0721.xyz/layouts/partials/single-header.html

15 lines
672 B
HTML
Raw Normal View History

2023-11-07 21:55:50 +01:00
<div class="content-inner full-width header">
<h1 class="single-title">{{ .Title }}</h1>
<p class="single-description">{{ .Description | markdownify }}</p>
{{ if and ( .Lastmod ) ( ne .Lastmod .PublishDate) }}
2023-11-11 02:01:47 +01:00
<!--<time class="single-date" datetime="{{ .Lastmod }}" title="{{ .Lastmod }}">Last updated {{ .Lastmod.UTC.Format "January" }} {{ .Lastmod.UTC.Format "2" | humanize }}, {{ .Lastmod.UTC.Format "2006" }}.</time> -->
2023-11-07 21:55:50 +01:00
{{ end }}
2023-11-08 00:26:52 +01:00
{{ if and (in (printf "/%s/" .File.Dir) "/posts/") (ne .File.BaseFileName "_index") }}
2023-11-07 23:27:15 +01:00
<a class="post-reading-time">{{ printf "Estimated reading time: %d minutes" .ReadingTime }}</a>
2023-11-08 00:26:52 +01:00
{{ end }}
2023-11-07 21:55:50 +01:00
</div>
<hr/>