Constructor
new Archives()
- Source:
Example
<Archives
title="Widget title"
showCount={true}
items={[
{
url: '/path/to/archive/page',
name: 'Archive name',
count: 1
}
]} />
Members
(static) Cacheable
Cacheable archives widget JSX component.
This class is supposed to be used in combination with the locals
hexo filter
(module:hexo/filter/locals).
- Source:
- See:
Example
<Archives.Cacheable
site={{ posts: {...} }}
config={{
language: 'en_US',
timezone: 'UTC',
archive_dir: '/path/to/archive'
}}
page={{
lang: 'en_US',
language: 'en_US'
}}
helper={{
url_for: function() {...},
_p: function() {...}
}}
group_by="monthly"
order={-1}
showCount={true}
format="MMMM YYYY" />