Gathering detailed insights and metrics for hexo-pagination
Gathering detailed insights and metrics for hexo-pagination
Gathering detailed insights and metrics for hexo-pagination
Gathering detailed insights and metrics for hexo-pagination
npm install hexo-pagination
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
24 Stars
70 Commits
11 Forks
14 Watching
5 Branches
36 Contributors
Updated on 05 Nov 2024
Minified
Minified + Gzipped
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
4.5%
2,456
Compared to previous day
Last week
1.9%
14,578
Compared to previous week
Last month
1.4%
61,493
Compared to previous month
Last year
-4.4%
769,692
Compared to previous year
5
Pagination utilities for Hexo generator plugins.
1$ npm install hexo-pagination --save
Option | Description | Default |
---|---|---|
perPage | Posts displayed per page | 10 |
format | URL format | page/%d/ |
layout | Layout. This value can be a string or an array. | ['archive', 'index'] |
data | Extra data | {} |
explicitPaging | Number the first page. e.g. page/1/index.html | false |
For example:
1var pagination = require("hexo-pagination"); 2 3pagination("/tags/hexo", [], { 4 perPage: 10, 5 format: "page/%d/", 6 layout: ["archive", "index"], 7 data: { 8 tag: "hexo", 9 }, 10});
This function returns an array containing objects with 3 properties: path
, layout
, data
.
Data | Description |
---|---|
base | Base URL |
total | Total pages |
current | Current page number |
current_url | Path of the current page (which equals to path ) |
posts | The slice of posts for the current page |
prev | Previous page number |
prev_link | The path to the previous page |
next | Next page number |
next_link | The path to the next page |
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
Found 8/9 approved changesets -- score normalized to 8
Reason
5 existing vulnerabilities detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
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