hexo-butterfly底部信息的修改
底部美化
加入css,打开主题文件夹,找到
function.styl
文件路径\themes\butterfly\source\css\_global
将以下代码加入即可,或者直接加入一个css文件自己链接
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52/*底部信息*/
.github-badge {
margin-left: 5px;
display: inline-block;
border-radius: 4px;
text-shadow: none;
color: #fff;
line-height: 15px;
background-color: #abbac3;
margin-bottom: 5px;
font-size: 12px;
}
.github-badge .badge-subject {
display: inline-block;
background-color: #4d4d4d;
padding: 4px 4px 4px 6px;
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
}
.github-badge .badge-value {
display: inline-block;
padding: 4px 6px 4px 4px;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
}
.github-badge .bg-blue {
background: linear-gradient(to right, #3a6186, #89253e);
}
.github-badge .bg-brightgreen {
background: linear-gradient(to right, #fc5c7d, #6a82fb);
}
.github-badge .bg-orange {
background: linear-gradient(to right, #f0c27b, #4b1248);
}
.github-badge .bg-gradient {
background: linear-gradient(to right, #3ca5f6, #a86af9);
}
.github-badge .bg-blueviolet {
background: linear-gradient(to right, #654ea3, #eaafc8);
}
.github-badge .bg-DNS {
background: linear-gradient(to right, #aa4b6b, #6b6b83, #3b8d99);
}修改_config.butterfly.yml
将以下代码修改信息,并加入到footer
custom_text
中1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57<div class="github-badge">
<a
style="color: #fff"
rel="external nofollow noopener noreferrer"
href="https://hexo.io/"
target="_blank"
title="由 Hexo 强力驱动"
data-pjax-state=""
><span class="badge-subject"><i class="fab fa-superpowers"></i>Powered</span
><span class="badge-value bg-blue">Hexo</span></a
>
</div>
<div class="github-badge">
<a
style="color: #fff"
rel="external nofollow noopener noreferrer"
href="https://cn.aliyun.com/"
target="_blank"
title="阿里云提供域名相关服务"
data-pjax-state=""
><span class="badge-subject"
><i class="fa fa-jsfiddle" style="color: orange"></i>DNS</span
><span class="badge-value bg-DNS">Aliyun cloud</span></a
>
</div>
<div class="github-badge">
<a
style="color: #fff"
rel="external nofollow noopener noreferrer"
href="https://www.upyun.com/?utm_source=lianmeng&utm_medium=referral"
target="_blank"
title="又拍云CDN加速"
data-pjax-state=""
><span class="badge-subject"
><img
src="https://www.upyun.com/static/favicon-16x16.png"
style="width: 12px; height: 11px"
/>又拍云</span
><span class="badge-value bg-blueviolet">加速 </span></a
>
</div>
<div class="github-badge">
<a
style="color: #fff"
rel="external nofollow noopener noreferrer"
href="https://www.beian.miit.gov.cn/"
target="_blank"
title="备案信息"
data-pjax-state=""
><span class="badge-subject"
><img
src="xxxxxx"
style="width: 12px; height: 11px"
/>晋ICP备</span
><span class="badge-value bg-orange">2020009500号-1</span></a
>
</div>看效果图
查看效果图
加入小熊效果
查看图例
修改footer.pug
- 末尾位置加入两行代码
1 | .bear |
将css引入即可
查看代码
- 手机端已隐藏
1 | /* 底部优化 */ |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Harry の 心 阁!
评论