Skip to content

Commit

Permalink
hotfix: Do not count code in read time
Browse files Browse the repository at this point in the history
  • Loading branch information
chollinger93 committed Jun 19, 2023
1 parent 902a5f4 commit a58721e
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 a58721e

Please sign in to comment.