blog/themes/fluid/layout/categories.ejs

20 lines
704 B
Plaintext
Raw Normal View History

2024-11-16 11:34:10 +08:00
<%
page.layout = 'categories'
page.title = theme.category.title || __('category.title')
page.subtitle = theme.category.subtitle || __('category.subtitle')
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 orderBy = theme.category.order_by || 'name'
var curCats = site.categories.find({ parent: { $exists: false } }).sort(orderBy).filter(cat => cat.length)
%>
<%- partial('_partials/category-list', {
curCats: curCats,
params: {
orderBy: orderBy,
postLimit : theme.category.post_limit,
postOrderBy: theme.category.post_order_by || config.index_generator.order_by
}
}) %>