Closed paisleyrob closed 1 month ago
Hi @paisleyrob,
I think you are quite wrong here.
if i18n directory is not present (for English language only), control would be in {{ .WordCount }} Words
part in else block.
However, I am open to suggestions.
PS. I am looking through your PR; and I think I might have to close that.
@1bl4z3r I've updated the Pull Request associated with this issue to move the .WordCount
outside of the internationalization.
Describe the bug
{{ .WordCount }}
Is missing on single page posts when there isi18n
present.To Reproduce Produce a single post and include i18n configuration. Note the metadata about the post includes the internationalization of
wordCount
but not the actual word count.Expected behavior I expected the word count to be present regardless of the internationalization
I think the fix is the following: