A fast, simple & powerful blog framework, powered by Node.js. Here is the template of it.
Demo | Official Website | Documentation | GitHub
Get Started
Use this template and create your repository, there are two lines to modify in _config.yml
:
Set your site url at line 16. For example, if you use GitHub Page, set url as
https://username.github.io/project
:1
url: https://std.ac/hexo-template
Set your project name at *line 107, if your project name is
username
orusername.github.io
, just remove it at the end of_config.yml
:1
root: /hexo-template
CI/CD
This repository uses GitHub Actions for CI/CD. You don’t need to build your documents manually. Just commit your documents (then run git push
), and then turn on the GitHub Pages in the settings to access your online documents. (For this demo is https://std.ac/hexo-template)
Hexo Features
- Blazing fast generating
- Support for GitHub Flavored Markdown and most Octopress plugins
- One-command deploy to GitHub Pages, Heroku, etc.
- Powerful API for limitless extensibility
- Hundreds of themes & plugins
Commands
Install Hexo
1 | $ npm install hexo-cli -g |
Install with brew on macOS and Linux:
1 | $ brew install hexo |
Setup your blog
1 | $ hexo init blog |
Start the server
1 | $ hexo server |
Create a new post
1 | $ hexo new "Hello Hexo" |
Generate static files
1 | $ hexo generate |
More Information
- Read the documentation
- Visit the Awesome Hexo list
- Find solutions in troubleshooting
- Join discussion on Google Group, Discord, Gitter or Telegram
- See the plugin list and the theme list on wiki
- Follow @hexojs for latest news
License
Follows hexojs/hexo , use MIT License.