add reading time

This commit is contained in:
richmans 2022-04-03 17:45:17 +02:00
parent 33c18cc18c
commit 2f729cb8c3

7
layouts/_default/li.html Normal file
View File

@ -0,0 +1,7 @@
<li>
<a href="{{ .Permalink }}">
{{ .Title }}
</a>
<small>{{ math.Round (div (countwords .Content) 220.0) }} minutes</small>
-<small><time>{{ .Date.Format "Jan 2, 2006" }}</time></small>
</li>