hexo.next.pisces7.1搭建


hexo.next.pisces7.1免费博客搭建

查看 npm 安装各 hexo 插件的情况

1
npm ls --depth 0

设置npm代理

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//淘宝的服务器代理
npm config set registry https://registry.npm.taobao.org

//查看npm配置文件
npm config list

//安装hexo
npm install hexo-cli -g
npm install hexo --save

//首先安装gulp以及所需要的模块:
npm install gulp -g
npm install gulp-htmlclean gulp-htmlmin gulp-minify-css gulp-uglify gulp-imagemin --save
//在博客的根目录下创建gulpfile.js文件

hexo clean //先清理文件
hexo g //编译生成静态文件
gulp //gulp插件执行压缩任务
hexo s //开启服务 本地调试
hexo d //发布

//最終集合命令
hexo clean&&hexo g&&gulp&&hexo d

出现报异常解决办法

1
2
3
4
5
6
7
8
9
10
11
npm install --ignore-scripts

//如果还是无法解决以下办法
//方案一
rm -rf node_modules/ # 删除已安装的模块
npm cache clean # 清除 npm 内部缓存npm install
npm install --save # 重新安装
//方案二
rm -rf node_modules/ # 删除已安装的模块
sudo npm update -g npm # 更新 npmnpm install
npm install --save # 重新安装

入门

https://blog.coding.net/blog/CS-Hexo

https://bestzuo.cn/posts/blog-establish.html

添加站内搜索

1
2
3
4
5
6
7
8
9
10
11
12
npm install hexo-generator-searchdb --save
# Local search
# Dependencies: https://github.com/theme-next/hexo-generator-searchdb
local_search:
enable: true
# if auto, trigger search by changing input
# if manual, trigger search by pressing enter key or search button
trigger: auto
# show top n results per article, show all results by setting to -1
top_n_per_article: 3
# unescape html strings to the readable one
unescape: false

评论功能

https://sjq597.github.io/2018/05/18/Hexo-使用Gitment评论功能/

评论插件

https://www.livere.com/my_Livere

统计字数

https://leancloud.cn/dashboard/app.html?appid=K5YVwmgIky2gruuxkqiBwBqL-gzGzoHsz#/key

聊天功能

http://dashboard.daovoice.io/app/9cc528ae/settings/appearance
https://hoxis.github.io/hexo-next-daovoice.html

阅读量

https://hexo-guide.readthedocs.io/zh_CN/latest/third-service/[不蒜子]文章阅读次数.html

分类

https://www.jianshu.com/p/e17711e44e00

版权

https://arcecho.github.io/2017/04/08/Hexo-Next下添加版权声明模块/

gulp压缩

https://css0209.cn/20180919hexo-next/
https://theme-next.iissnan.com/getting-started.html#third-party-services
https://www.jianshu.com/p/f054333ac9e6

统计功能

https://notes.doublemine.me/2015-10-21-为NexT主题添加文章阅读量统计功能.html#配置LeanCloud

炫酷效果

https://www.jianshu.com/p/9f0e90cc32c2
https://yunhao.space/2018/06/29/hexo-next-function-setting/
http://www.wuxubj.cn/2016/08/Hexo-nexT-build-personal-blog/
https://www.jianshu.com/p/972389bb43c8

主题优化

https://www.jianshu.com/p/efbeddc5eb19
https://www.93bok.com/Hexo+Coding搭建免费博客之Next主题设置(二)/

相册

https://tding.top/gallery/
https://tding.top/archives/607c3b85.html

-------------本文结束-------------
0%