快速开始
安装
安装 Solitude 4,并准备博客根目录中的主题配置。
创建或进入 Hexo 博客
npm install -g hexo-cli
hexo init my-blog
cd my-blog
npm install安装 Solitude 4
npm install hexo-theme-solitude@4git clone --branch v4.0.0 --depth 1 https://github.com/everfu/hexo-theme-solitude.git themes/solitude在 Hexo 根配置中启用主题:
# _config.yml
theme: solitude复制主题配置
cp node_modules/hexo-theme-solitude/_config.yml _config.solitude.ymlcp themes/solitude/_config.yml _config.solitude.yml后续只修改博客根目录中的副本,不要修改 node_modules 内的文件。已有用户应合并新配置,而不是覆盖定制内容;参阅升级到 4.0。
