Skip to content

Commit

Permalink
🚀 升级主题版本至 4.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
CCKNBC committed Feb 13, 2022
1 parent 3f237e6 commit b8fb2dd
Show file tree
Hide file tree
Showing 57 changed files with 678 additions and 898 deletions.
71 changes: 34 additions & 37 deletions _config.butterfly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@
# --------------------------------------

menu:
# 首页: / || fas fa-home
# 订阅: /sub/ || fas fa-rss
# 友链: /blogroll/ || fas fa-user-friends
文章 || fas fa-book-reader:
归档: /archives || fas fa-archive
标签: /tags || fas fa-tags
分类: /categories || fas fa-folder-open
便签 || fas fa-sticky-note:
友链: /blogroll || fas fa-blog
音乐: /music || fas fa-music
短文: /essay || fas fa-comment-alt
# 统计: /charts || fas fa-chart-bar
关于 || fas fa-desktop:
订阅: /sub || fas fa-rss
本站: /about || fas fa-stream
隐私: /privacy-policy || fas fa-user-secret
# 首页: / || fa-solid fa-home
# 订阅: /sub/ || fa-solid fa-rss
# 友链: /blogroll/ || ffa-solid fa-user-friends
文章 || fa-solid fa-book-reader:
归档: /archives || fa-solid fa-box-archive
标签: /tags || fa-solid fa-tags
分类: /categories || fa-solid fa-folder-open
便签 || fa-solid fa-sticky-note:
友链: /blogroll || fa-solid fa-blog
音乐: /music || fa-solid fa-music
短文: /essay || fa-solid fa-comment-alt
# 统计: /charts || fa-solid fa-chart-bar
关于 || fa-solid fa-desktop:
订阅: /sub || fa-solid fa-rss
本站: /about || fa-solid fa-stream
隐私: /privacy-policy || fa-solid fa-user-secret
# 自己: /me/ || far fa-user
# 状态: https://cc.instatus.com || fas fa-server
# 证书: https://ssl.ccknbc.cc || fab fa-expeditedssl
# 状态: https://cc.instatus.com || fa-solid fa-server
# 证书: https://ssl.ccknbc.cc || fa-brands fa-expeditedssl

# Hide the child menu items in mobile sidebar
hide_sidebar_menu_child: false
Expand All @@ -48,24 +48,19 @@ copy:
# formal:
# icon: link || the description
social:
# fab fa-github: https://github.com/CCKNBC || GitHub
# fas fa-envelope: mailto:[email protected] || Email
cc icon-bilibili: https://space.bilibili.com/1404413254 || 哔哩哔哩
cc icon-weibo: https://weibo.com/CommonCulture || 微博
cc icon-yuque: https://www.yuque.com/ccknbc || 语雀
cc icon-telegram: https://t.me/ccknbcTG || 电报群组
cc icon-twitter: https://www.twitter.com/ccknbc || 推特
# fas fa-bell faa-ring animated: /sub || 多种订阅方式
# fab fa-telegram faa-pulse animated: https://t.me/ccknbcTG || Telegram
# fab fa-telegram-plane: https://t.me/ccknbcTG || Telegram Group
# fab fa-line: https://line.me/ti/p/1vqM_WDef1 || LINE
# fab fa-weibo: https://weibo.com/CommonCulture || Weibo

# fab fa-twitter faa-shake animated: https://www.twitter.com/ccknbc || Twitter
# fab fa-instagram: https://www.instagram.com/ccknbc || Instagram
# fab fa-facebook: https://www.facebook.com/ccknbc || Facebook
# fab fa-facebook-messenger: https://m.me/ccknbc || Messenger
# fab fa-youtube: https://www.youtube.com/channel/UCpwvRmdjIYbhjEaoEl6hI8Q || YouTube
# fa-brands fa-github: https://github.com/CCKNBC || GitHub
# fa-solid fa-envelope: mailto:[email protected] || Email
fa-brands fa-bilibili: https://space.bilibili.com/1404413254 || 哔哩哔哩
fa-brands fa-weibo: https://weibo.com/CommonCulture || 微博
fa-solid fa-crow: https://www.yuque.com/ccknbc || 语雀
fa-brands fa-telegram: https://t.me/ccknbcTG || 电报群组
fa-brands fa-twitter: https://www.twitter.com/ccknbc || 推特
# fa-solid fa-bell faa-ring animated: /sub || 多种订阅方式
# fa-brands fa-line: https://line.me/ti/p/1vqM_WDef1 || LINE
# fa-brands fa-instagram: https://www.instagram.com/ccknbc || Instagram
# fa-brands fa-facebook: https://www.facebook.com/ccknbc || Facebook
# fa-brands fa-facebook-messenger: https://m.me/ccknbc || Messenger
# fa-brands fa-youtube: https://www.youtube.com/channel/UCpwvRmdjIYbhjEaoEl6hI8Q || YouTube

# search (搜索)
# --------------------------------------
Expand Down Expand Up @@ -734,7 +729,7 @@ aside:
description: ''
button:
enable: true
icon: fas fa-circle faa-burst animated
icon: fa-solid fa-circle faa-burst animated
text: CC的状态监控
link: https://cc.instatus.com
card_announcement:
Expand Down Expand Up @@ -1001,6 +996,8 @@ inject:
- '<div class="app-refresh" id="app-refresh"> <div class="app-refresh-wrap"> <label>✨ 网站已更新 👉</label> <a href="javascript:void(0)" onclick="location.reload()">✔ <b>点击刷新</b> 💫</a> </div></div><script>function showNotification(){if(GLOBAL_CONFIG.Snackbar){let t="light"===document.documentElement.getAttribute("data-theme")?GLOBAL_CONFIG.Snackbar.bgLight:GLOBAL_CONFIG.Snackbar.bgDark,e=GLOBAL_CONFIG.Snackbar.position;Snackbar.show({text:"✨ 部落格已更新 👉",backgroundColor:t,duration:1e4,pos:e,actionText:"✔ 点击刷新 💫",textColor:"#8FBC8F",actionTextColor:"#4CAF50",onActionClick:function(t){location.reload()}})}else{let o=`top: 0; background: ${"light"===document.documentElement.getAttribute("data-theme")?"#49b1f5":"#1f1f1f"};`;document.getElementById("app-refresh").style.cssText=o}}"serviceWorker"in navigator&&(navigator.serviceWorker.controller&&navigator.serviceWorker.addEventListener("controllerchange",function(){showNotification()}),window.addEventListener("load",function(){navigator.serviceWorker.register("/sw.js")}));</script>'
# - <script defer src='https://api.vvhan.com/api/snow'></script>
# - <script defer src="https://api.vvhan.com/api/denglong"></script>
# - <script src="https://cdn.staticfile.org/jquery/3.5.1/jquery.min.js"></script>
# - <div id="music" key="6208da041a763" api="https://music.mx142.ltd"></div><script id="xplayer" src="https://music.mx142.ltd/Static/player4/js/player.js" ></script>

# Don't modify the following settings unless you know how they work
# 非必要請不要修改
Expand Down
8 changes: 4 additions & 4 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ marked:
descriptionLists: true

markdown:
preset: "default" # 渲染器默认预设 # "commonmark": 使用严格 CommandMark 规定. # "default": 默认配置, 类似于 GFM # "zero": 禁用所有预设.
preset: "default" # 渲染器默认预设 # "commonmark": 使用严格 CommandMark 规定. # "": 默认配置, 类似于 GFM # "zero": 禁用所有预设.
# 以下为 render 选项
render:
html: true # 是否解析 HTML 内容, 如果为 true 则表示解析, false 表示将 HTML 转意为文本.
Expand All @@ -102,21 +102,21 @@ markdown:
- markdown-it-abbr # https://github.com/markdown-it/markdown-it-abbr
- markdown-it-cjk-breaks # https://github.com/markdown-it/markdown-it-cjk-breaks
- markdown-it-container # https://github.com/markdown-it/markdown-it-container
# - markdown-it-deflist # https://github.com/markdown-it/markdown-it-deflist
- markdown-it-deflist # https://github.com/markdown-it/markdown-it-deflist
- markdown-it-emoji # https://github.com/markdown-it/markdown-it-emoji
- markdown-it-footnote # https://github.com/markdown-it/markdown-it-footnote
- markdown-it-ins # https://github.com/markdown-it/markdown-it-ins
- markdown-it-mark # https://github.com/markdown-it/markdown-it-mark
- markdown-it-sub # https://github.com/markdown-it/markdown-it-sub
- markdown-it-sup # https://github.com/markdown-it/markdown-it-sup
#以下为额外安装插件
# - markdown-it-task-lists # https://github.com/revin/markdown-it-task-lists
- markdown-it-task-lists # https://github.com/revin/markdown-it-task-lists
anchors: # 锚点的配置
level: 1 # 开始创建锚点的等级 # 如 "2" 则表示从 H2 开始创建一直到 H6(最后).
collisionSuffix: '' # 如果遇到重复的锚点 ID 为其添加数字编号时在这个数字后添加的后缀.
# 以下为标题锚点配置
permalink: true # false # 如果为 true 则创建一个除标题外带有固定地址的的锚点标签.
permalinkClass: 'fas fa-hashtag faa-pulse animated' # 定义固定锚点的 class 名.
permalinkClass: 'fa-solid fa-hashtag faa-pulse animated' # 定义固定锚点的 class 名.
permalinkSide: 'right' # 设定为 right 则会在标题后添加固定链接.
permalinkSymbol: '' # 定义固定链接使用的符号
# 标题固定锚点到此结束
Expand Down
Loading

0 comments on commit b8fb2dd

Please sign in to comment.