hexo is a static blog platform based on
tommy351, using Markdown (or other engine) to parse post, and the most exciting point is its fast enough as to parse hundreds of posts with seconds. After using ghost for several months, I decided to move my blog from ghost to hexo.
Getting Started With Hexo Init a project Generate Static Web Pages Create New Post/Page Deploy Your Blog Publish Your Draft Clean Existed Files Run Hexo Server Render Your Blog Other Commands Composite Command Developing Your Hexo Basic Configuration Deploy Config Tuning Your Hexo Themes Plugins
hexo, one needs to install
npm, which could be downloaded and installed from the official site
nodejs. And be sure that git is installed as well
1 sudo npm install -g hexo-cli hexo-server Getting Started With Hexo
Hexo is easy to use, and most commands have abbreviation, like:
is equivalent to
In the following, we use the convention to include full command ant its abbr.
Init a project
1 2 hexo init [folder] cd [folder] && nam install
[folder], hexo will initialize the current directory.
Generate Static Web Pages
Create New Post/Page
1 2 hexo n[ew] "title" hexo n[ew] page "title" Deploy Your Blog
Here one needs to have the project properly configured.
Publish Your Draft
1 hexo p[ublish] 'draft' post/page Clean Existed Files
Run Hexo Server
Run a hexo server to publish your site:
Render Your Blog
Several commands can be combined,
1 2 hexo d[eploy] -g hexo s[erver] -g Developing Your Hexo
Noting that there is a space after the colon followed by each option, like
Some basic options are followed below,
1 2 3 4 5 6 7 title: dark subtitle: darkshell description: a simple static blog author: dark language: en url: http://yoursite.com Deploy Config
One can easily deploy hexo project to github pages via git, or your personal server.
1 2 3 type: git repository: email@example.com/darkshell/darkshell.io.git branch: master Tuning Your Hexo
hexo project 上有许多非常棒的主题, 下面是个人觉得很棒的主题. Plugins
http://hexo.io/plugins 上有很多插件, 可以按需安装.
1 2 3 npm install hexo-render-ejs --save npm install hexo-render-stylus --save npm install hexo-render-marked --save