diff --git a/README.md b/README.md
index d23ad81..2ad22c5 100644
--- a/README.md
+++ b/README.md
@@ -67,6 +67,8 @@ paginate = 5
defaultTheme = "dark"
# if you set this to 0, only submenu trigger will be visible
showMenuItems = 2
+ # Enable to show reading time in minutes for posts
+ showReadingTime = false
[languages]
[languages.en]
@@ -80,6 +82,7 @@ paginate = 5
readOtherPosts = "Read other posts"
newerPosts = "Newer posts"
olderPosts = "Older posts"
+ minuteReadingTime = "min read"
[languages.en.params.logo]
logoText = "hello friend"
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 5009d32..6da2c7e 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -12,8 +12,12 @@
{{ .Date.Format "2006-01-02" }}
{{ with .Params.Author }}— {{ $.Site.Params.WrittenBy | default "Written by" }} {{ . }}{{ end }}
+ {{ if $.Site.Params.ShowReadingTime }}
+ — ⏰ {{ .ReadingTime }} {{ $.Site.Params.MinuteReadingTime | default "min read" }}
+ {{ end }}
+
{{ if .Params.tags }}
{{ range .Params.tags }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 61bbbf8..b30f221 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -8,6 +8,9 @@
{{ end }}
{{ with .Params.Author }}— {{ $.Site.Params.WrittenBy | default "Written by" }} {{ . }}{{ end }}
+ {{ if $.Site.Params.ShowReadingTime }}
+ — ⏰ {{ .ReadingTime }} {{ $.Site.Params.MinuteReadingTime | default "min read" }}
+ {{ end }}
{{ if .Params.tags }}