This commit is contained in:
mei
2024-11-16 11:34:10 +08:00
parent d05d322538
commit 16fd822492
485 changed files with 22551 additions and 131 deletions
+12
View File
@@ -0,0 +1,12 @@
<%
page.layout = "category"
page.title = [__('category.title'), page.category].join(" - ")
page.subtitle = [__('category.subtitle'), page.category].join(" - ")
page.banner_img = theme.category.banner_img
page.banner_img_height = theme.category.banner_img_height
page.banner_mask_alpha = theme.category.banner_mask_alpha
var cat = site.categories.find({name: page.category}).filter(cat => cat.length).data[0]
%>
<%- partial('_partials/archive-list.ejs', { params: { key: page.layout, postTotal: cat ? cat.posts.length : 0 } }) %>