mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 12:13:19 -06:00
Add post count to category taxonomy
This commit is contained in:
parent
805dc65ccb
commit
9bee463a3c
@ -163,6 +163,10 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.category-list .category-metadata {
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Tags list format */
|
/* Tags list format */
|
||||||
|
@ -91,6 +91,9 @@ aria_post_metadata:
|
|||||||
aria_author_metadata:
|
aria_author_metadata:
|
||||||
other: "author metadata"
|
other: "author metadata"
|
||||||
|
|
||||||
|
aria_category_metadata:
|
||||||
|
other: "category metadata"
|
||||||
|
|
||||||
aria_post_meta_date:
|
aria_post_meta_date:
|
||||||
other: "date"
|
other: "date"
|
||||||
|
|
||||||
@ -103,6 +106,9 @@ aria_author_post_count:
|
|||||||
aria_author_word_count:
|
aria_author_word_count:
|
||||||
other: "word count"
|
other: "word count"
|
||||||
|
|
||||||
|
aria_category_post_count:
|
||||||
|
other: "post count"
|
||||||
|
|
||||||
aria_series_metadata:
|
aria_series_metadata:
|
||||||
other: "series metadata"
|
other: "series metadata"
|
||||||
|
|
||||||
|
@ -91,6 +91,9 @@ newer_post:
|
|||||||
# aria_author_metadata:
|
# aria_author_metadata:
|
||||||
# other: "author metadata"
|
# other: "author metadata"
|
||||||
|
|
||||||
|
# aria_category_metadata:
|
||||||
|
# other: "category metadata"
|
||||||
|
|
||||||
# aria_post_meta_date:
|
# aria_post_meta_date:
|
||||||
# other: "date"
|
# other: "date"
|
||||||
|
|
||||||
@ -103,6 +106,9 @@ newer_post:
|
|||||||
# aria_author_word_count:
|
# aria_author_word_count:
|
||||||
# other: "word count"
|
# other: "word count"
|
||||||
|
|
||||||
|
# aria_category_post_count:
|
||||||
|
# other: "post count"
|
||||||
|
|
||||||
# aria_series_metadata:
|
# aria_series_metadata:
|
||||||
# other: "series metadata"
|
# other: "series metadata"
|
||||||
|
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
<p>{{ .Title | markdownify }}</p>
|
<p>{{ .Title | markdownify }}</p>
|
||||||
</a>
|
</a>
|
||||||
{{ partial "description-or-summary.html" . }}
|
{{ partial "description-or-summary.html" . }}
|
||||||
|
{{ partial "post-metadata/category.html" . }}
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
{{ partial "rss-link.html" . }}
|
{{ partial "rss-link.html" . }}
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
|
{{ partial "post-metadata/category.html" . }}
|
||||||
|
|
||||||
{{ with .Content }}
|
{{ with .Content }}
|
||||||
{{ . }}
|
{{ . }}
|
||||||
{{ end }}
|
{{ 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