Skip to content

Commit

Permalink
Merge pull request #12 from chollinger93/hotfix/no-code-in-wordcount
Browse files Browse the repository at this point in the history
hotfix: Do not count code in read time
  • Loading branch information
chollinger93 authored Jun 19, 2023
2 parents 902a5f4 + a58721e commit 2e9eeb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h4 class="title small">
{{ $wordCountNoCode := replaceRE `(?s)<div class="highlight">.*?</div>` "" .Content |
countwords }}
<h4 class="title small smaller">
{{ $wordCountNoCode | lang.FormatNumberCustom 0 }} words, ~{{ div .WordCount
{{ $wordCountNoCode | lang.FormatNumberCustom 0 }} words, ~{{ div $wordCountNoCode
.Site.Params.wpm
}} min read
</h4>
Expand Down

0 comments on commit 2e9eeb2

Please sign in to comment.