title: 还原Hexo Blog以及Next主题配置
categories: 服务器
tags: 备忘
abbrlink: 2337818948

date: 2021-04-18 17:21:59


安装hexo asset image模块(原作者archived)

npm install https://github.com/xcodebuild/hexo-asset-image --save

安装hexo asset image模块

npm install hexo-asset-image --save

安装hexo git部署模块

npm install hexo-deployer-git --save

安装hexo搜索模块

npm install hexo-generator-searchdb --save

安装abbrlink模块

npm install hexo-abbrlink --save

安装sitemap模块

npm install hexo-generator-sitemap --save

安装Next主题

git clone https://github.com/theme-next/hexo-theme-next themes/next

Pace元素模块
cd themes/next
git clone https://github.com/theme-next/theme-next-pace source/lib/pace
Canvas-nest元素模块

touch source/_data/footer.swig

添加文本内容

<script color="0,0,255" opacity="0.5" zIndex="-1" count="99" src="https://cdn.jsdelivr.net/npm/canvas-nest.js@1/dist/canvas-nest.js"></script>

编辑Next主题_config文件,将footer注释符去掉

#footer: source/_data/footer.swig -> footer: source/_data/footer.swig

安装hexo-admin模块
npm install hexo-admin --save
最后修改:2022 年 03 月 12 日
个人分享,随意打赏