mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-11-14 20:35:58 -06:00
18 lines
488 B
HTML
18 lines
488 B
HTML
<div class="post-metadata">
|
|
{{/* Calculate the total word count */}}
|
|
{{ $total_words := 0 }}
|
|
{{ range .Data.Pages }}
|
|
{{ $total_words = add $total_words .WordCount }}
|
|
{{ end }}
|
|
|
|
<span class="post-meta-item">
|
|
{{ partial "icon.html" "newspaper" }}
|
|
{{ i18n "post_count" (len .Data.Pages) }}
|
|
</span>
|
|
|
|
<span class="post-meta-item">
|
|
{{ partial "icon.html" "align-left" }}
|
|
{{ i18n "wordcount" $total_words }}
|
|
</span>
|
|
</div>
|