mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 04:13:17 -06:00
Add post count to category taxonomy
This commit is contained in:
parent
805dc65ccb
commit
9bee463a3c
@ -163,6 +163,10 @@
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.category-list .category-metadata {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Tags list format */
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -14,6 +14,7 @@
|
||||
<p>{{ .Title | markdownify }}</p>
|
||||
</a>
|
||||
{{ partial "description-or-summary.html" . }}
|
||||
{{ partial "post-metadata/category.html" . }}
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
@ -5,6 +5,8 @@
|
||||
{{ partial "rss-link.html" . }}
|
||||
</h1>
|
||||
|
||||
{{ partial "post-metadata/category.html" . }}
|
||||
|
||||
{{ with .Content }}
|
||||
{{ . }}
|
||||
{{ end }}
|
||||
|
6
layouts/partials/post-metadata/category.html
Normal file
6
layouts/partials/post-metadata/category.html
Normal 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>
|
Loading…
Reference in New Issue
Block a user