mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2024-11-24 17:16:31 -05:00
9 lines
No EOL
219 B
HTML
9 lines
No EOL
219 B
HTML
<!-- Reading Time -->
|
|
{{ $readTime := mul (div (countwords .Content) 220.0) 60 }}
|
|
{{ if gt $readTime 60 }}
|
|
<p>
|
|
<i class="fas fa-stopwatch"></i>
|
|
{{ math.Ceil (div $readTime 60) }} minute
|
|
reading time
|
|
</p>
|
|
{{ end }} |