mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2024-11-25 01:26:31 -05:00
8 lines
No EOL
187 B
HTML
8 lines
No EOL
187 B
HTML
<!-- Reading Time -->
|
|
{{ $readTime := mul (div (countwords .Content) 220.0) 60 }}
|
|
{{ if gt $readTime 60 }}
|
|
<p>
|
|
Reading Time:
|
|
{{ math.Ceil (div $readTime 60) }} minutes.
|
|
</p>
|
|
{{ end }} |