Added icons to publish date and reading time

This commit is contained in:
Brandon Rozek 2022-05-16 14:54:30 -04:00
parent 0cefeeb270
commit 2fbfe38e3d
2 changed files with 12 additions and 4 deletions

View file

@ -2,7 +2,8 @@
{{ $readTime := mul (div (countwords .Content) 220.0) 60 }}
{{ if gt $readTime 60 }}
<p>
Reading Time:
{{ math.Ceil (div $readTime 60) }} minutes.
<i class="fas fa-stopwatch"></i>
{{ math.Ceil (div $readTime 60) }} minute
reading time
</p>
{{ end }}