From 83eaea4e57e5d2bfaa6a55d3b8df772a0a942a05 Mon Sep 17 00:00:00 2001 From: Mark Vainomaa Date: Wed, 7 Dec 2022 12:12:32 +0100 Subject: [PATCH] Adjust time to read position --- assets/scss/tale/_post.scss | 4 ++++ layouts/_default/single.html | 2 -- layouts/partials/single/title.html | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/assets/scss/tale/_post.scss b/assets/scss/tale/_post.scss index 61cff18e..740ea64f 100644 --- a/assets/scss/tale/_post.scss +++ b/assets/scss/tale/_post.scss @@ -61,3 +61,7 @@ margin: 0; } } + +.post-read-time { + text-align: center; +} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index a41f9440..3d4d0f56 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -9,8 +9,6 @@ {{ partial "single/header.html" . }} - 🕒 {{ math.Round (div (countwords .Content) 220.0) }} {{ i18n "minutes" }} - {{ .Content }} {{ partial "single/footer.html" . }} diff --git a/layouts/partials/single/title.html b/layouts/partials/single/title.html index bbd93aa4..5d279ad2 100644 --- a/layouts/partials/single/title.html +++ b/layouts/partials/single/title.html @@ -1,2 +1,4 @@

{{ .Title }}

-
\ No newline at end of file +
🕒 {{ math.Round (div (countwords .Content) 220.0) }} {{ i18n "minutes" }}
+
+