Gathering detailed insights and metrics for hexo-generator-index2-customized
Gathering detailed insights and metrics for hexo-generator-index2-customized
Gathering detailed insights and metrics for hexo-generator-index2-customized
Gathering detailed insights and metrics for hexo-generator-index2-customized
npm install hexo-generator-index2-customized
Typescript
Module System
Min. Node Version
Node Version
NPM Version
70.3
Supply Chain
98.3
Quality
74.5
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
46 Stars
13 Commits
8 Forks
1 Watchers
1 Branches
2 Contributors
Updated on Nov 05, 2024
Latest Version
0.2.0
Package Id
hexo-generator-index2-customized@0.2.0
Unpacked Size
15.29 kB
Size
4.79 kB
File Count
8
NPM Version
6.5.0
Node Version
6.16.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
Filtered index generator for [Hexo]. Add filter feature base on the official index generator and generate some specail posts to special folder.
1$ npm install hexo-generator-index2 --save 2$ npm uninstall hexo-generator-index --save
Don't worry about the uninstallation, this plugin works same as offical index generator when no include/exclude options.
1# whether the hexo-generator-index2 include the offical hexo-generator-index, default is true 2index2_include_index: true # defult is true 3 4# the custom index2 generator, can be array or object 5index2_generator: 6 - layout: 'archive' # use existing archive layout 7 path: 'web' # output to web folder: http://127.0.0.1:4000/web/ 8 per_page: 10 9 order_by: -date 10 include: 11 - category Web # include article which category is Web 12 exclude: 13 - tag Hexo # exclude article which tag is Hexo 14 - layout: 'index' # use existing index layout 15 path: '' # output to root directory: http://127.0.0.1:4000/ 16 index: true # Set whether index, results is_home() is true or not
index
''
, means output to the root directory (http://127.0.0.1:4000/ )true
and the path
is ''
, same to offical [hexo-generator-index]The per_page and order_by is the offical index generator option, just keep it.
Include/exclude option is attribute value
format, available attribute are:
category_map
used, please use the value of category_map
insteadtag_map
used, please use the value of tag_map
insteadSimply
1# whether the hexo-generator-index2 include the offical hexo-generator-index, default is true 2index2_include_index: true # defult is true
Advance
1index2_generator: 2 - layout: 'index' # use existing index layout 3 path: '' # output to root directory: http://127.0.0.1:4000/ 4 index: true # Set index true 5 include: # include some path/category/tag 6 - category Web # include article which category is Web 7 exclude: # excluce some path/category/tag 8 - tag Hexo # exclude article which tag is Hexo
Generate special articles to specific folder. Such as list articles witch category is Web
to http://127.0.0.1/web/
1index2_generator: 2 - layout: 'index' # use existing archive layout 3 path: 'web' # output to web folder: http://127.0.0.1:4000/web/ 4 per_page: 10 5 order_by: -date 6 include: 7 - category Web # include article which category is Web
Use is_home2()
to judge whether the page is generated by index2 generator.
{%- block page-main %}
{%- if is_home() || is_home2() %}
{{ partial('post/index') }}
{%- elseif is_archive() || is_category() || is_tag() %}
{{ partial('post/archive') }}
{%- elseif is_post() %}
{{ partial('post/article', {layout_type: 'post'}) }}
{%- endif %}
{%- endblock %}
MIT [hexo-generator-index]: https://github.com/hexojs/hexo-generator-index [hexo-generator-index2]: https://github.com/Jamling/hexo-generator-index2 [Hexo]: http://hexo.io/
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 1/12 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More