Skip to content

Commit

Permalink
[#151] added posts counter to the category view
Browse files Browse the repository at this point in the history
  • Loading branch information
wololock committed Nov 28, 2019
1 parent ebd0791 commit 9ea29af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion themes/mytheme/layout/partial/category-header.pug
Expand Up @@ -6,5 +6,7 @@ header.header-section
.page-heading
h1!= page.category
hr.small
span.page-subheading!="All posts in category '" + page.category + "'"
span.page-subheading
span.number=site.categories.findOne({name: page.category}).posts.length
span!=" posts in the category"
span.img-desc

0 comments on commit 9ea29af

Please sign in to comment.