mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2024-11-09 10:50:34 -05:00
Round up reading times
This commit is contained in:
parent
b2b05cc29e
commit
ddaa281397
1 changed files with 1 additions and 2 deletions
|
@ -19,8 +19,7 @@
|
||||||
{{ if gt $readTime 60 }}
|
{{ if gt $readTime 60 }}
|
||||||
<p>
|
<p>
|
||||||
Reading Time:
|
Reading Time:
|
||||||
{{ math.Floor (div $readTime 60) }} minutes
|
{{ math.Ceil (div $readTime 60) }} minutes.
|
||||||
and {{ mod $readTime 60 }} seconds.
|
|
||||||
</p>
|
</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<!-- tags -->
|
<!-- tags -->
|
||||||
|
|
Loading…
Reference in a new issue