diff options
author | tdro <tdro@noreply.example.com> | 2022-05-12 04:30:38 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-05-12 04:30:38 -0400 |
commit | 93197de690932d966457cc07682398e592421643 (patch) | |
tree | 56c34785b9b427d11a6fd5303742b2237bc5ce8e /themes | |
parent | 49c652502dad290cf304c4613aa9778d3f129f7d (diff) | |
download | canory-93197de690932d966457cc07682398e592421643.tar.gz canory-93197de690932d966457cc07682398e592421643.tar.bz2 canory-93197de690932d966457cc07682398e592421643.zip |
themes/default/layouts/partials/read-time: No string trimming
Show accurate estimation.
Diffstat (limited to 'themes')
-rw-r--r-- | themes/default/layouts/partials/read-time.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/default/layouts/partials/read-time.html b/themes/default/layouts/partials/read-time.html index 5b6ca62..7222fc6 100644 --- a/themes/default/layouts/partials/read-time.html +++ b/themes/default/layouts/partials/read-time.html @@ -1,5 +1,5 @@ {{ $seconds := mul (div .WordCount 180.0) 60.0 }} -{{ $format := printf "%.0f" $seconds | strings.TrimRight "0" | strings.TrimRight "." }} +{{ $format := printf "%.0f" $seconds }} <read-time title="Takes {{ $format }} seconds to read"> {{ $format }} sec |