gulp-swblog
v1.0.6
Published
Create a swblog in your static directory
Downloads
3
Maintainers
Readme
gulp-swblog
Create a swblog in your static directory for gulp
Usage
First, install gulp-swblog
as a development dependency:
npm install --save-dev gulp-swblog
Then, add it to your gulpfile.js
:
Simple
var swblog = require('gulp-swblog');
gulp.task('swblog', function() {
return gulp.src('../blog/**/*.md', { base : './' } )
.pipe(swblog('./swblog', {
"author": "liquidliang",
"logoTitle": "swblog博客系统",
"nav": [
["Home", "#!/blog/readme.md"],
["About", "#!/blog/about.md"],
["Document", "#!/blog%2Fdocument"]
]
}))
.pipe(gulp.dest('./'));
});