Register the Hexo helper functions for a Hexo page/post.
- Source:
(require("hexo/helper/page"))(hexo)
Register the Hexo helper functions for a Hexo page/post.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
hexo |
Hexo
|
The Hexo instance. |
Example
// Use the function below to test if the given page is the /categories page
// Need to be combined with lib/hexo/generator/categories
is_categories(page);
// Use the function below to test if the given page is the /tags page
// Need to be combined with lib/hexo/generator/tags
is_tags(page);