From 32ea5dc5cfe2f8a801c3ca22cef0eddd66370e1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20P=C3=A4pper?= Date: Fri, 15 Feb 2019 09:35:16 +0100 Subject: [PATCH] Added ReadingTime indication to give the reader an idea of the read time in minutes --- layouts/_default/list.html | 2 ++ layouts/_default/single.html | 1 + 2 files changed, 3 insertions(+) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 5009d32..f9d431a 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -14,6 +14,8 @@ {{ with .Params.Author }}— {{ $.Site.Params.WrittenBy | default "Written by" }} {{ . }}{{ end }} + - ⏰ {{ .ReadingTime }} min read + {{ if .Params.tags }} {{ range .Params.tags }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 61bbbf8..240a556 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -8,6 +8,7 @@ {{ end }} {{ with .Params.Author }}— {{ $.Site.Params.WrittenBy | default "Written by" }} {{ . }}{{ end }} + - ⏰ {{ .ReadingTime }} min read {{ if .Params.tags }}