hexo-generator-i18n-index
v1.0.0
Published
Hexo generator for i18n index pages with sticky post support
Maintainers
Readme
hexo-generator-i18n-index
Hexo generator for i18n index pages with sticky post support.
Features
- Multi-language index page generation
- Sticky/pinned post support
- Redirect post handling (posts with
original_lang_urlappear last) - Pagination support
Installation
npm install hexo-generator-i18n-indexConfiguration
In your _config.yml:
language:
- en
- zh-TW
- zh-CN
- ja
index_generator:
per_page: 10
order_by: -datePost Sorting
Posts are sorted in the following order:
- Posts without
original_lang_url(regular posts) - Posts with
original_lang_url(redirect posts) - appear last - Within each group, sorted by sticky/pinned value (descending)
- Within same sticky value, sorted by date (newest first)
Usage
The plugin automatically registers with Hexo. No additional configuration needed.
Testing
npm test