feat: add reading time to post itself
This commit is contained in:
parent
f387177da5
commit
92b3bff53d
1 changed files with 1 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
||||||
{{ $lastUpdated := .Lastmod.Format "January 2, 2006" }}
|
{{ $lastUpdated := .Lastmod.Format "January 2, 2006" }}
|
||||||
{{ $lastMachine := .Lastmod.Format "2006-01-02T15:04:05-07:00" }}
|
{{ $lastMachine := .Lastmod.Format "2006-01-02T15:04:05-07:00" }}
|
||||||
<blockquote>
|
<blockquote>
|
||||||
|
<p><b>reading time:</b> {{ lower .ReadingTime }} mins</p>
|
||||||
<p><b>first posted:</b> <time datetime="{{ $dateMachine }}">{{ lower $dateHuman }}</time></p>
|
<p><b>first posted:</b> <time datetime="{{ $dateMachine }}">{{ lower $dateHuman }}</time></p>
|
||||||
{{ if ne $lastUpdated $dateHuman }}
|
{{ if ne $lastUpdated $dateHuman }}
|
||||||
<p><b>last updated:</b> <time datetime="{{ $lastMachine }}">{{ lower $lastUpdated }}</time></p>
|
<p><b>last updated:</b> <time datetime="{{ $lastMachine }}">{{ lower $lastUpdated }}</time></p>
|
||||||
|
|
Loading…
Reference in a new issue