From a58721e1aa45fae1964ef886515272b6300e4405 Mon Sep 17 00:00:00 2001 From: Christian Hollinger Date: Mon, 19 Jun 2023 14:44:13 -0400 Subject: [PATCH] hotfix: Do not count code in read time --- layouts/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/index.html b/layouts/index.html index 468da45..3b16e1a 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -29,7 +29,7 @@

{{ $wordCountNoCode := replaceRE `(?s)
.*?
` "" .Content | countwords }}

- {{ $wordCountNoCode | lang.FormatNumberCustom 0 }} words, ~{{ div .WordCount + {{ $wordCountNoCode | lang.FormatNumberCustom 0 }} words, ~{{ div $wordCountNoCode .Site.Params.wpm }} min read