From ce5d9a7097694835da4c3ecba842a846c05759be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Crist=C3=B3bal=20Alc=C3=A1zar?= Date: Tue, 18 Jan 2022 10:29:51 -0300 Subject: [PATCH] Add number of minutes to read: list + content --- layouts/partials/content.html | 1 + layouts/partials/li.html | 1 + 2 files changed, 2 insertions(+) diff --git a/layouts/partials/content.html b/layouts/partials/content.html index 784dd41..f3b719e 100644 --- a/layouts/partials/content.html +++ b/layouts/partials/content.html @@ -6,6 +6,7 @@

{{ .Title }}

{{ if not .Date.IsZero }} PUBLISHED ON {{ .Date.Format .Site.Params.dateformat | upper }} {{end}} + / {{ math.Round (div (countwords .Content) 220.0) }} MIN READ {{ if isset .Params "categories" }} {{ $total := len .Params.categories }} {{ if gt $total 0 }} diff --git a/layouts/partials/li.html b/layouts/partials/li.html index 3372676..2d2d42a 100644 --- a/layouts/partials/li.html +++ b/layouts/partials/li.html @@ -5,6 +5,7 @@ {{ .Title }}

{{ if not .Date.IsZero }} {{ .Date.Format .Site.Params.dateformat | upper }} {{end}} + - {{ math.Round (div (countwords .Content) 220.0) }} MIN READ {{ if isset .Params "categories" }} {{ $total := len .Params.categories }}