diff --git a/assets/css/main.scss b/assets/css/main.scss index 56b5f37..0749b0c 100644 --- a/assets/css/main.scss +++ b/assets/css/main.scss @@ -168,6 +168,10 @@ a:visited { color: $gray-medium; } +.ettr { + color: $gray-light; +} + // ARTICLE FORMATTING time { margin-right: 1.5em; diff --git a/i18n/bg.toml b/i18n/bg.toml index cf94e8a..eaa0039 100644 --- a/i18n/bg.toml +++ b/i18n/bg.toml @@ -27,3 +27,9 @@ other = "Тема Noteworthy" [built_with_hugo] other = "Направено с Hugo" + +[estimated_time_to_read] +other = "Време за четене" + +[minutes] +other = "минути" diff --git a/i18n/de.toml b/i18n/de.toml index 28ec87a..eb66484 100644 --- a/i18n/de.toml +++ b/i18n/de.toml @@ -27,3 +27,9 @@ other = "Noteworthy Theme" [built_with_hugo] other = "Gebaut mit Hugo" + +[estimated_time_to_read] +other = "Zeit zum lesen" + +[minutes] +other = "Minuten" diff --git a/i18n/en.toml b/i18n/en.toml index 19a1662..0ec397e 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -27,3 +27,9 @@ other = "Noteworthy theme" [built_with_hugo] other = "Built with Hugo" + +[estimated_time_to_read] +other = "Estimated time to read" + +[minutes] +other = "minutes" diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 34c228b..2c40457 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -4,6 +4,10 @@ {{ if .Date }} {{ end }} + {{ $readingTime := div (float .WordCount) .Site.Params.reading_speed }} + {{ $readingTime = math.Ceil $readingTime }} +

{{ i18n "estimated_time_to_read" }}: {{ $readingTime }} {{ i18n "minutes" }}

+

{{ .Content }}