From 46eb0bf13790fbeb3bcb74abdc852dee8adf170a Mon Sep 17 00:00:00 2001 From: KemoNine Date: Mon, 20 Mar 2023 17:02:06 -0400 Subject: [PATCH] add reading time and word count to headings --- themes/hugo-xmin/layouts/partials/page_meta.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/themes/hugo-xmin/layouts/partials/page_meta.html b/themes/hugo-xmin/layouts/partials/page_meta.html index 54d318e..5b92303 100644 --- a/themes/hugo-xmin/layouts/partials/page_meta.html +++ b/themes/hugo-xmin/layouts/partials/page_meta.html @@ -22,6 +22,11 @@

{{ partial "related.html" . }}

+

+ {{ if (gt .ReadingTime 0) }}Reading Time: {{ .ReadingTime }} minutes{{ end }} +  |  + {{ if (gt .WordCount 0) }}Word Count: {{ .WordCount }} words{{ end }} +

{{ if .Params.toc }}