aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2022-04-02 02:23:40 -0400
committerThedro Neely <thedroneely@gmail.com>2022-04-02 02:23:40 -0400
commitea95b7b32f0bb9870428f377522a4523031a9692 (patch)
treeef5eef8acb9cc892308ad3b95fade70c278c9d17
parent1d5066b30c8793034bea113ab85a536928dbffa5 (diff)
downloadthedroneely.com-ea95b7b32f0bb9870428f377522a4523031a9692.tar.gz
thedroneely.com-ea95b7b32f0bb9870428f377522a4523031a9692.tar.bz2
thedroneely.com-ea95b7b32f0bb9870428f377522a4523031a9692.zip
generators/hugo/layouts/partials/read-time: Format
-rw-r--r--generators/hugo/themes/tdro/layouts/partials/read-time.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/generators/hugo/themes/tdro/layouts/partials/read-time.html b/generators/hugo/themes/tdro/layouts/partials/read-time.html
index d935f91..e445068 100644
--- a/generators/hugo/themes/tdro/layouts/partials/read-time.html
+++ b/generators/hugo/themes/tdro/layouts/partials/read-time.html
@@ -1,2 +1,6 @@
{{ $minutes := div .WordCount 150 }}
-{{ if lt $minutes 1 }} 1 minute read {{ else }} {{ $minutes }} minute read {{ end }}
+{{ if lt $minutes 1 }}
+ 1 minute read
+{{- else -}}
+ {{ $minutes }} minute read
+{{ end }}