mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-06-12 01:47:28 -05:00
Use <main> and have different class names for authors
This commit is contained in:
@ -1,16 +1,16 @@
|
||||
<div class="post-metadata" aria-label="{{ i18n "aria_author_metadata" }}">
|
||||
<div class="author-metadata" aria-label="{{ i18n "aria_author_metadata" }}">
|
||||
{{/* Calculate the total word count */}}
|
||||
{{ $total_words := 0 }}
|
||||
{{ range .Data.Pages }}
|
||||
{{ $total_words = add $total_words .WordCount }}
|
||||
{{ end }}
|
||||
|
||||
<span class="post-meta-item" aria-label="{{ i18n "aria_author_post_count" }}">
|
||||
<span class="author-meta-item" aria-label="{{ i18n "aria_author_post_count" }}">
|
||||
{{ partial "icon.html" "newspaper" }}
|
||||
{{ i18n "post_count" (len .Data.Pages) }}
|
||||
</span>
|
||||
|
||||
<span class="post-meta-item" aria-label="{{ i18n "aria_author_word_count" }}">
|
||||
<span class="author-meta-item" aria-label="{{ i18n "aria_author_word_count" }}">
|
||||
{{ partial "icon.html" "align-left" }}
|
||||
{{ i18n "wordcount" $total_words }}
|
||||
</span>
|
||||
|
Reference in New Issue
Block a user