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 installInstall Solitude 4
npm install hexo-theme-solitude@4git clone --branch v4.0.0 --depth 1 https://github.com/everfu/hexo-theme-solitude.git themes/solitudeSet the theme in the Hexo root configuration:
# _config.yml
theme: solitudeInstall the renderers
npm install hexo-renderer-pug hexo-renderer-stylusThese 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.ymlcp themes/solitude/_config.yml _config.solitude.ymlEdit 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.
