From 3a97a8718d9f9fe42471d565b9a161508fa1e65a Mon Sep 17 00:00:00 2001 From: Carlos Date: Fri, 11 Feb 2022 17:49:21 +0100 Subject: [PATCH] feat: Add time to read post --- i18n/de.toml | 3 +++ i18n/en.toml | 5 ++++- i18n/es.toml | 3 +++ i18n/fr.toml | 3 +++ i18n/it.toml | 3 +++ i18n/ku.toml | 3 +++ i18n/nl.toml | 3 +++ i18n/pl.toml | 3 +++ layouts/_default/single.html | 2 ++ layouts/_default/summary.html | 1 + 10 files changed, 28 insertions(+), 1 deletion(-) diff --git a/i18n/de.toml b/i18n/de.toml index c587b3f7..7ddc8373 100644 --- a/i18n/de.toml +++ b/i18n/de.toml @@ -9,3 +9,6 @@ other = "Made with Hugo using the Hugo using the Tale theme." [publishdate] -other = "{{ .PublishDate.Format \"January 2, 2006\" }}" \ No newline at end of file +other = "{{ .PublishDate.Format \"January 2, 2006\" }}" + +[minutes] +other = "minutes" \ No newline at end of file diff --git a/i18n/es.toml b/i18n/es.toml index 25f657e8..c9f55833 100644 --- a/i18n/es.toml +++ b/i18n/es.toml @@ -9,3 +9,6 @@ other = "Hecho con Hugo usando el tema Hugo, à partir du thème
+ 🕒 {{ math.Round (div (countwords .Content) 220.0) }} {{ i18n "minutes" }}

{{ .Title }}