基于Hexo+Node.js+github+coding搭建个人博客(二)
增加顶部加载条
打开/themes/next/layout/_partials/head.swig文件,增加如下代码:
但是,默认的是粉色的,要改变颜色可以在/themes/next/layout/_partials/head.swig文件中增加如下代码(接在刚才link的后面)
.pace .pace-progress {
background: #ff009e; /*进度条颜色*/
height: 3px;
}
.pace .pace-progress-inner {
box-shadow: 0 0 10px #ff009e, 0 0 5px #ff009e; /*阴影颜色*/
}
.pace .pace-activity {
border-top-color: #ff009e; /*上边框颜色*/
border-left-color: #ff009e; /*左边框颜色*/
}
文章加密访问
打开themes->next->layout->_partials->head.swig文件,插入这样一段代码:
而后在文章上写成相似这样:
---
title: Hello World
date: 2016/7/13 20:46:25
categories:
- Diary
tags:
- Testing
- Another Tag
password: 123456
---
博客更换Disqus评论
因为多说即将关闭,本站启用Disqus。
既然Disqus已被墙,那么为了对没有梯子的同学标示友好,我们可以选择点击加载Disqus评论的方式,这个问题貌似也得到了主题作者的关注-> (NexT5.2.0)[https://github.com/iissnan/hexo-theme-next/milestone/7]
具体做法如下:
打开themes/next/layout/_partials/comments.swig,在文件内容
前面加入下面内容: