Once Hexo is installed, run the following commands to initialize Hexo in the target <folder>.

$ hexo init <folder>
$ cd <folder>
$ npm install

Once initialized, here’s what your project folder will look like:

├── _config.yml
├── package.json
├── scaffolds
├── source
| ├── _drafts
| └── _posts
└── themes


Site configuration file. You can configure most settings here.


Application data. The EJS, Stylus and Markdown renderers are installed by default. If you want, you can uninstall them later.

"name": "hexo-site",
"version": "0.0.0",
"private": true,
"hexo": {
"version": ""
"dependencies": {
"hexo": "^7.0.0",
"hexo-generator-archive": "^2.0.0",
"hexo-generator-category": "^2.0.0",
"hexo-generator-index": "^3.0.0",
"hexo-generator-tag": "^2.0.0",
"hexo-renderer-ejs": "^2.0.0",
"hexo-renderer-stylus": "^3.0.0",
"hexo-renderer-marked": "^6.0.0",
"hexo-server": "^3.0.0",
"hexo-theme-landscape": "^1.0.0"


Scaffold folder. When you create a new post, Hexo bases the new file on the scaffold.


Source folder. This is where you put your site’s content. Hexo ignores hidden files and files or folders whose names are prefixed with _ (underscore) - except the _posts folder. Renderable files (e.g. Markdown, HTML) will be processed and put into the public folder, while other files will simply be copied.


Theme folder. Hexo generates a static website by combining the site contents with the theme.