❯ hexo -h INFO Validating config Usage: hexo <command>
Commands: clean Remove generated files and cache. config Get or set configurations. deploy Deploy your website. generate Generate static files. help Get help on a command. init Create a new Hexo folder. list List the information of the site migrate Migrate your site from other system to Hexo. new Create a new post. publish Moves a draft post from _drafts to _posts folder. render Render files with renderer plugins. server Start the server. version Display version information.
Global Options: --config Specify config file instead of using _config.yml --cwd Specify the CWD --debug Display all verbose messages in the terminal --draft Display draft posts --safe Disable all plugins and scripts --silent Hide output on console
For more help, you can use 'hexo help [command]'for the detailed information or you can check the docs: http://hexo.io/docs/
❯ hexo help config INFO Validating config Usage: hexo config [name] [value]
Description: Get or set configurations.
Arguments: name Setting name. Leave it blank if you want to show all configurations. value New value of a setting. Leave it blank if you just want to show a single configuration.
获取theme的配置:
1 2 3
❯ hexo config theme INFO Validating config next
如果需要设置某一项的子项,比如related_posts中的enable:
1 2 3
❯ hexo config related_posts.enable INFO Validating config true