备忘录

网站提示信息魔改

.......\butterfly\languages\zh-CN.yml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120

copy:
success: 吾辈宣布,你的剪切板已被占领
error: 呀~复制失败,请在尝试下
noSupport: 对不起,你的浏览器不支持

page:
articles: 文章总览
tag: 标签
category: 分类
archives: 归档

card_post_count: 条评论

sticky: 置顶
no_title: 无题

post:
created: 发表于
updated: 更新于
wordcount: 字数总计
min2read: 阅读时长
min2read_unit: 分钟
page_pv: 阅读量
comments: 评论数
copyright:
author: 本文作者
link: 本文链接
copyright_notice: 版权声明
copyright_content: '本博客所有文章除特别声明外,均采用
<a href="%s" target="_blank">%s</a> 许可协议。转载请注明来自 <a href="%s" target="_blank">%s</a>!'
recommend: 相关推荐
edit: 编辑

search:
title: 本地搜索
load_data: 正在载入文件,请稍后
algolia_search:
input_placeholder: 文章检索
hits_empty: '您的内容无法查询:${query}'
hits_stats: '一共找到 ${hits} 条结果,用时 ${time} 毫秒'

local_search:
input_placeholder: 搜索文章
hits_empty: '找不到您查询的内容:${query}'

pagination:
prev: 上一篇文章
next: 下一篇文章

comment: 评论

aside:
articles: 文章
tags: 标签
categories: 分类
card_announcement: 公告
card_categories: 分类
card_tags: 标签
card_archives: 归档
card_recent_post: 最新文章
card_webinfo:
headline: 网站资讯
article_name: 文章数目
runtime:
name: 已运行时间
unit: 天
last_push_date:
name: 最后更新时间
site_wordcount: 本站总字数
site_uv_name: 本站访客数
site_pv_name: 本站总访问量
more_button: 查看更多
card_newest_comments:
headline: 最新评论
loading_text: 正在加载中...
error: 无法获取评论,请确认相关配置是否正确
zero: 没有评论
image: 图片
link: 链接
code: 代码
card_toc: 目录

date_suffix:
just: 刚刚
min: 分钟前
hour: 小时前
day: 天前
month: 个月前

donate: 打赏
share: 分享

rightside:
readmode_title: 阅读模式
translate_title: 简繁转换
night_mode_title: 浅色和深色模式转换
back_to_top: 直达顶部
toc: 目录
scroll_to_comment: 直达评论
setting: 设置
aside: 单栏和双栏切换
chat: 聊天

copy_copyright:
author: 作者
link: 链接
source: 来源
info: 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

Snackbar:
chs_to_cht: 已切换为繁体
cht_to_chs: 已切换为简体
day_to_night: 已切换为深色主题
night_to_day: 已切换为浅色主题

loading: 加载中...

error404: ERROR!页面没有找到

页脚魔改

...../footer.pug
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
//- #footer-wrap
//- if theme.footer.owner.enable
//- - var now = new Date()
//- - var nowYear = now.getFullYear()
//- if theme.footer.owner.since && theme.footer.owner.since != nowYear
//- .copyright!= `©${theme.footer.owner.since} - ${nowYear} By ${config.author}`
//- else
//- .copyright!= `©${nowYear} By ${config.author}`
//- if theme.footer.copyright
//- .framework-info
//- span= _p('footer.framework') + ' '
//- a(href='https://hexo.io')= 'Hexo'
//- span.footer-separator |
//- span= _p('footer.theme') + ' '
//- a(href='https://github.com/jerryc127/hexo-theme-butterfly')= 'Butterfly'
//- if theme.footer.custom_text
//- .footer_custom_text!=`${theme.footer.custom_text}`
#footer_icon
.icon_left
a.icon_link(href="http://foreverblog.cn/go.html" title="虫洞-随机访问十年之约成员博客")
i.fa-solid.fa-circle-notch.fa-fw

a.icon_link(href="https://travellings.link" title="开往-随机跳转到另一个加入开往的网页")
i.fa-solid.fa-subway.fa-fw

a.icon_link(href="https://github.com/cnortles" title="我的Github主页")
i.fa-brands.fa-github.fa-fw


img.footer_logo(src='https://q1.qlogo.cn/g?b=qq&nk=1792572437&s=4' onclick="btf.scrollToDest(0,500)" title="返回顶部")

.icon_left
a.icon_link(href="https://www.cnortles.top/rss.xml" title="我的订阅")
i.fa-solid.fa-compass.fa-fw

a.icon_link(href="https://res.abeim.cn/api/qq/?qq=1792572437" title="联系QQ")
i.fa-brands.fa-qq.fa-fw


a.icon_link(href="mailto:crl@cnortles.top" title="联系邮箱")
i.fa-solid.fa-envelope.fa-fw

#crl-footer
.footer-group
h3.footer-title 分类
.footer-links
a.footer-item(href="/categories/文案") 文案
a.footer-item(href="/categories/笔记") 笔记
a.footer-item(href="/categories/源码") 源码
a.footer-item(href="/categories/资源") 资源
a.footer-item(href="/categories/转载") 转载
.footer-group
h3.footer-title 关于
.footer-links
a.footer-item(href="/home") 我的主页
a.footer-item(href="/charts") 站点统计
a.footer-item(href="/archives") 文章归档
a.footer-item(href="/update") 更新记录
a.footer-item(href="https://www.yuque.com/cnortles") 我的语雀
.footer-group
h3.footer-title 其他内容
.footer-links
a.footer-item(href="/privacy") 隐私协议
a.footer-item(href="/sitemap.xml") 网站地图
a.footer-item(href="/rss.xml") 我的订阅
a.footer-item(href="https://icp.gov.moe/?keyword=20222852") 萌ICP
.footer-group#friend-links-in-footer
h3.footer-title 友链
.footer-links
a.footer-item(href="") 随机加载中...
a.footer-item(href="") 随机加载中...
a.footer-item(href="") 随机加载中...
a.footer-item(href="") 随机加载中...
a.footer-item(href="") 随机加载中...
a.footer-item(href="/link") 查看更多
#footer-bottom
.footer-bottom-links
.footer-bottom-left
#runtime
.footer-bottom-right
a.footer-bottom-link(href="https://butterfly.js.org/" title="主题") Butterfly
a.footer-bottom-link |
a.footer-bottom-link(href="https://cloud.tencent.com" title="CDN") 腾讯CDN
a.footer-bottom-link |
a.footer-bottom-link(href="https://beian.miit.gov.cn/" title="备案号") 豫ICP2022002852

侧边栏按钮魔改

themes\butterfly\layout\includes\rightside.pug
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
58
59
60
61
62
63
64
65
66
- const { readmode, translate, darkmode, aside, chat_btn } = theme
mixin rightsideItem(array)
each item in array
case item
when 'readmode'
if is_post() && readmode
button#readmode(type="button" title=_p('rightside.readmode_title'))
i.fas.fa-book-open
when 'translate'
if translate.enable
button#translateLink(type="button" title=_p('rightside.translate_title'))= translate.default
when 'darkmode'
if darkmode.enable && darkmode.button
button#darkmode(type="button" title=_p('rightside.night_mode_title'))
i.fas.fa-adjust
when 'hideAside'
if aside.enable && aside.button && page.aside !== false
button#hide-aside-btn(type="button" title=_p('rightside.aside'))
i.fas.fa-arrows-alt-h
when 'toc'
if showToc
button#mobile-toc-button.close(type="button" title=_p("rightside.toc"))
i.fas.fa-list-ul
when 'chat'
if chat_btn
button#chat_btn(type="button" title=_p("rightside.chat"))
i.fas.fa-sms
when 'comment'
if commentsJsLoad
a#to_comment(href="#post-comment" title=_p("rightside.scroll_to_comment"))
i.fas.fa-comments
when 'share'
button.share(type="button" title='分享链接' onclick="share()")
i.fas.fa-share-nodes
when 'refresh'
button#refresh-cache(type="button" title='刷新缓存' onclick="refreshCache()")
i.fas.fa-refresh.fa-spin

#rightside
- const { enable, hide, show } = theme.rightside_item_order
- const hideArray = enable ? hide && hide.split(',') : ['readmode','translate','darkmode','hideAside']
- const showArray = enable ? show && show.split(',') : ['toc','chat','comment','share']


#rightside-config-hide
if hideArray
+rightsideItem(hideArray)
#rightside-config-show
if enable
if hide
button#rightside_config(type="button" title=_p("rightside.setting"))
i.fas.fa-cog.fa-spin
else
if is_post()
if (readmode || translate.enable || (darkmode.enable && darkmode.button))
button#rightside_config(type="button" title=_p("rightside.setting"))
i.fas.fa-cog.fa-spin
else if translate.enable || (darkmode.enable && darkmode.button)
button#rightside_config(type="button" title=_p("rightside.setting"))
i.fas.fa-cog.fa-spin

if showArray
+rightsideItem(showArray)

button#go-up(type="button" title=_p("rightside.back_to_top"))
i.fas.fa-arrow-up