Skip to content

zuojj/zblog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zblog

It is a static blog system based on markdown and nodejs

Installation

$ npm install -g zblog

Usage

$ zblog -h

Usage: zblog [options] [command]

Commands:

help 显示使用帮助 init [options] [dir] 创建一个新的博客 server [dir] 实时预览 build [options] [dir] 生成静态HTML new [options] [articleName] 新建一篇文章

Options:

-h, --help output usage information -V, --version output the version number

Init a blog

$ zblog init <blog-folder-name>

Example:

$ zblog init myFirstBlog

Build a blog

$ cd myFirstBlog
$ zblog build 

Local preview

$ cd myFirstBlog
$ zblog server start
$ zblog server stop

Open build folder

$ cd myFirstBlog
$ zblog server open

Production Release

$ cd myFirstBlog
$ zblog build -o ./output-prod

Create a new article

$ cd myFirstBlog
$ zlog new <file-name>

About

A static blog generation system based on markdown and nodejs

Resources

Stars

Watchers

Forks

Packages

No packages published