Add post count to category taxonomy

This commit is contained in:
2022-05-06 21:47:24 -05:00
parent 805dc65ccb
commit 9bee463a3c
6 changed files with 25 additions and 0 deletions

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>