Solitude Docs

Installation

Install Solitude 4 and prepare a root theme configuration.

Create or open a Hexo blog

npm install -g hexo-cli
hexo init my-blog
cd my-blog
npm install

Install Solitude 4

npm install hexo-theme-solitude@4
git clone --branch v4.0.0 --depth 1 https://github.com/everfu/hexo-theme-solitude.git themes/solitude

Set the theme in the Hexo root configuration:

# _config.yml
theme: solitude

Install the renderers

npm install hexo-renderer-pug hexo-renderer-stylus

These compile the theme templates and styles. They are installed automatically as theme dependencies when you install with npm, but the Git method requires this manual step.

Copy the theme configuration

cp node_modules/hexo-theme-solitude/_config.yml _config.solitude.yml
cp themes/solitude/_config.yml _config.solitude.yml

Edit the root copy. Do not edit package files under node_modules. Existing users should merge the new file instead of overwriting their customized configuration; see Upgrade to 4.0.