2025-2-26-fixed
This commit is contained in:
12
themes/fluid/layout/category.ejs
Normal file
12
themes/fluid/layout/category.ejs
Normal 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 } }) %>
|
||||
Reference in New Issue
Block a user