Hexo Quick Guide
Short reference for my Hexo/NexT workflow.
Official Site: https://hexo.io/
Version: 8.1.0
Workflow
With Git deployment
1 | $ hexo new "My New Article" |
Maintenance
Update outdated npm packages. With npm-check-updates, run the following under the blog directory (./):
1 | ncu -u |
Configuration
Site config is stored in ./_config.yml
Theme
Configuration
Configuration priority (from high to low):
theme_configin site’s primary configuration file_config.[theme].ymlfile_config.ymlfile under the theme directory
NexT
GitHub
Documentation
Version: 8.27.0
Configuration
NexT theme config is stored in ./_config.next.yml & node_modules/hexo-theme-next/_config.yml
Code Highlight Theme
Legacy Repositories
Usage
Tag Plugins
Referencing images or other assets using normal markdown syntax and relative paths may lead to incorrect display on archive or index pages. Plugins have been created by the community to address this issue in Hexo 2.
Include Code
1 | {% include_code [title] [lang:language] [from:line] [to:line] path/to/file %} |
Include Posts
1 | {% post_link filename [title] [escape] %} |
Include Assets
1 | {% asset_path filename %} |