Source:

hexo.io/docs

Site Url

  • permalink: forevery url, :year/:month/:day/:title/

  • subdir: If site is in subdirectory blog, setup:

Directory

code_dir: /source/downloads/code
i18n_dir: /source/:lang
skip_render: only skip render, still copy to public, not ignore.

1
2
skip_render: "mypage/**/*"      # dir and subdir 
skip_render: "_post/README.md" # some file.

Writing

render_drafts: false
post_asset_folder: false
relative_links: false # /hello.html, not http://example.com/hello.html

Include/Exclude

  • include
  • exclude
  • ignore
1
2
3
4
ignore
- "**test" # any folder named 'test'
- "**/themes/*/test" # only in themes/
- "**/themes/**/test" # any in themes/ and subdir

Commands

hexo new draft title | ignore test
hexo new page –path mydir/filename “titlename”
hexo list tag
hexo s –debug

Github Pages

a

Comments