blob: 5b6ca62e6636aa44bbe69bd2eb7a432e3c20ad06 (
plain)
1
2
3
4
5
6
|
{{ $seconds := mul (div .WordCount 180.0) 60.0 }}
{{ $format := printf "%.0f" $seconds | strings.TrimRight "0" | strings.TrimRight "." }}
<read-time title="Takes {{ $format }} seconds to read">
{{ $format }} sec
</read-time>
|