2023-03-24 08:49:02 -05:00
|
|
|
<div class="page-metadata" aria-label="{{ i18n "aria_author_metadata" }}">
|
2021-11-22 01:36:29 -06:00
|
|
|
{{/* Calculate the total word count */}}
|
|
|
|
{{ $total_words := 0 }}
|
|
|
|
{{ range .Data.Pages }}
|
|
|
|
{{ $total_words = add $total_words .WordCount }}
|
|
|
|
{{ end }}
|
2021-10-27 19:51:46 -05:00
|
|
|
|
2023-03-24 08:49:02 -05:00
|
|
|
<span class="page-metadata-item" aria-label="{{ i18n "aria_author_post_count" }}">
|
2021-11-22 01:36:29 -06:00
|
|
|
{{ partial "icon.html" "newspaper" }}
|
|
|
|
{{ i18n "post_count" (len .Data.Pages) }}
|
|
|
|
</span>
|
2021-10-27 19:51:46 -05:00
|
|
|
|
2023-03-24 08:49:02 -05:00
|
|
|
<span class="page-metadata-item" aria-label="{{ i18n "aria_author_word_count" }}">
|
2021-11-22 01:36:29 -06:00
|
|
|
{{ partial "icon.html" "align-left" }}
|
|
|
|
{{ i18n "wordcount" $total_words }}
|
|
|
|
</span>
|
|
|
|
</div>
|