hexo添加顶部加载进度条

教程:

1.进入博客的 /themes/next 目录下
2.下载安装,Progress modules,输入代码如下:

1
2
git clone git@github.com:theme-next/theme-next-pace.git source/lib/pace
网上很多教程都是输入https的链接进行下载,但是现在git好像不支持https下载了,应该使用ssh进行下载。

3.打开主题配置文件,themes/next目录下的_config.yml文件,可以使用 ctrl+f搜索pace,之后将enable:false改成true,还可以更改类型(theme):

1
2
3
4
5
6
pace:
enable: true
# Themes list:
# big-counter | bounce | barber-shop | center-atom | center-circle | center-radar | center-simple
# corner-indicator | fill-left | flat-top | flash | loading-bar | mac-osx | material | minimal
theme: minimal

最后重新部署博客就好啦。

阅读更多

第一条当然是hexo发布博客教程啦!

写在前面(没用的感概,与内容无关):

​ 历经了四五个小时的努力,终于搭建好了人生的第一个博客(现在还没有域名,不过很快就会有了!),中间的千辛万苦就不多说了,以后有的是时间说,开始干货分享吧!

阅读更多