Constructor
new Categories()
- Source:
Example
<Categories
title="Widget title"
showCount={true}
categories={[
{
url: '/path/to/category/page',
name: 'Category name',
count: 1,
isCurrent: false,
children: [{
url: '/path/to/category/page',
name: 'Subcategory name',
count: 1,
}]
}
]} />
Members
(static) Cacheable
Cacheable categories widget JSX component.
This class is supposed to be used in combination with the locals
hexo filter
(module:hexo/filter/locals).
- Source:
- See:
Example
<Categories.Cacheable
site={{ categories: {...} }}
page={{
base: '/path/base/url',
_id: '******'
}}
helper={{
url_for: function() {...},
_p: function() {...}
}}
categories={{...}}
orderBy="name"
order={1}
showCurrent={false}
showCount={true}
depth={3} />