hexo/node_modules/hexo-theme-fluid/layout/category.ejs

13 lines
543 B
Plaintext

<%
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 } }) %>