Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 588 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 588 Bytes

hexo-genstubs

Generate Hexo stub posts for memory and performance tuning.

Installation

git clone https://github.com/leesei/hexo-genstubs
cd hexo-genstubs
npm install

Usage

genstubs.js [options]
genstubs.js -N 1000 -P 10  # Generate 1000 posts, with 10 paragraphs each
genstubs.js -N 1000 -P 10 -t 5 -c 1 # same, with tags and categories
genstubs.js --help         # see help

Posts will be generated in ./source/_posts, copy or symlink to a Hexo site folder and run hexo generate for testing.

Run npm run clean to clean mds in ./source/_posts.