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

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 Upgrading to 4.0.