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