Prerequisites
- Hexo 7.0+
- Node.js 18+
- npm or pnpm for dependency management
Installation
Inside is installed as an npm package in your Hexo project root:
1 | cd your-hexo-project |
Activating the Theme
In your project’s _config.yml, set the theme:
1 | theme: inside |
Theme Configuration File
Inside stores its own configuration separately from Hexo’s main _config.yml. After installing, copy the theme’s config file to your project root:
1 | cp node_modules/hexo-theme-inside/_config.yml _config.inside.yml |
All theme-specific settings go into _config.inside.yml. This keeps your Hexo config clean and makes theme upgrades safer.
⚠️ Never edit
node_modules/hexo-theme-inside/_config.ymldirectly — your changes will be overwritten on the nextnpm update.
Project Structure
1 | your-hexo-project/ |
Your First Post
Create a new file in source/_posts/:
1 | hexo new "Hello World" |
This generates source/_posts/hello-world.md with default front-matter. Open it:
1 |
|
Generating Static Files
1 | hexo generate # or: hexo g |
This compiles everything into public/.
Running Locally
1 | hexo server # or: hexo s |
Visit http://localhost:4000 to preview.
Theme Override (Optional)
Inside supports overriding theme source files. Any file placed in source/theme-inside/ with the same path as a theme file will replace the theme default.
This is useful for:
- Custom partials or layout components
- Adding site-specific static assets
- Tweaking behavior without forking the theme
What’s Next?
- Appearance → — Set your colors, fonts, and dark mode
- Sidebar → — Configure your profile and navigation
- Front-matter → — Learn all post/page metadata options
