feat: add reading time to post itself

This commit is contained in:
Daniel Alejandro Gallegos 2024-06-25 20:44:12 -04:00
parent f387177da5
commit 92b3bff53d
Signed by: taco
SSH key fingerprint: SHA256:YgoAbZ3x1d1kTGKEmT8elbjEvK/mn0hc4ATFgWhykR0

View file

@ -6,6 +6,7 @@
{{ $lastUpdated := .Lastmod.Format "January 2, 2006" }}
{{ $lastMachine := .Lastmod.Format "2006-01-02T15:04:05-07:00" }}
<blockquote>
<p><b>reading time:</b> {{ lower .ReadingTime }} mins</p>
<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>