mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2025-10-09 10:11:14 +00:00
Added icons to publish date and reading time
This commit is contained in:
parent
0cefeeb270
commit
2fbfe38e3d
2 changed files with 12 additions and 4 deletions
|
@ -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 }}
|
Loading…
Add table
Add a link
Reference in a new issue