Add post count to category taxonomy

This commit is contained in:
BBaoVanC 2022-05-06 21:47:24 -05:00
parent 805dc65ccb
commit 9bee463a3c
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
6 changed files with 25 additions and 0 deletions

View File

@ -163,6 +163,10 @@
margin: 0;
}
.category-list .category-metadata {
margin-left: auto;
}
/* Tags list format */

View File

@ -91,6 +91,9 @@ aria_post_metadata:
aria_author_metadata:
other: "author metadata"
aria_category_metadata:
other: "category metadata"
aria_post_meta_date:
other: "date"
@ -103,6 +106,9 @@ aria_author_post_count:
aria_author_word_count:
other: "word count"
aria_category_post_count:
other: "post count"
aria_series_metadata:
other: "series metadata"

View File

@ -91,6 +91,9 @@ newer_post:
# aria_author_metadata:
# other: "author metadata"
# aria_category_metadata:
# other: "category metadata"
# aria_post_meta_date:
# other: "date"
@ -103,6 +106,9 @@ newer_post:
# aria_author_word_count:
# other: "word count"
# aria_category_post_count:
# other: "post count"
# aria_series_metadata:
# other: "series metadata"

View File

@ -14,6 +14,7 @@
<p>{{ .Title | markdownify }}</p>
</a>
{{ partial "description-or-summary.html" . }}
{{ partial "post-metadata/category.html" . }}
</li>
{{ end }}
{{ end }}

View File

@ -5,6 +5,8 @@
{{ partial "rss-link.html" . }}
</h1>
{{ partial "post-metadata/category.html" . }}
{{ with .Content }}
{{ . }}
{{ end }}

View File

@ -0,0 +1,6 @@
<div class="category-metadata" aria-label="{{ i18n "aria_category_metadata" }}">
<span class="category-meta-item" aria-label="{{ i18n "aria_category_post_count" }}">
{{ partial "icon.html" "newspaper" }}
{{ i18n "post_count" (len .Data.Pages) }}
</span>
</div>