mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-10-04 06:22:00 +08:00
💥 改cdn_use為inject,可插入代碼到head或者bottom
💥 移除對文章隱藏的支持,如需要,請使用插件,hexo-hide-posts/hexo-generator-indexed 💥 移除subtitle金山詞霸每日一句,增加搏天api的隨機語錄 ✨ subtitle修改為網頁加載完後再加載,防止api回應過慢而阻礙網頁顯示 ✨ 適配valine 1.4.0, 刪除部分valine夜間模式代碼 ✨ meta增加article:published_time和article:modified_time ✨ 當沒有設置Description時,會自動讀取文章前200個文字作為meta Description ✨ sidebar menu 增加頭像轉圈hover 💄 調整aside和mobile sidebar 網頁資訊佈局,當缺少一個時,寬度依舊平分 🐛 調整子目錄的排版(向左對齊),修復只能點擊子目錄文字才能跳轉的bug 🔥 pug精簡 刪除recent-post.pug 改為引用mixins/post-ui.pug
This commit is contained in:
1 parent
e81a81c9d1
commit
d62ec1b866
29 files changed
+183
-329
No files matched your search
+18
-16
@@ -259,15 +259,14 @@ valine:
|
|||||||
enable: false # if you want use valine,please set this value is true
|
enable: false # if you want use valine,please set this value is true
|
||||||
appId: # leancloud application app id
|
appId: # leancloud application app id
|
||||||
appKey: # leancloud application app key
|
appKey: # leancloud application app key
|
||||||
notify: false # valine mail notify (true/false) https://github.com/xCss/Valine/wiki
|
|
||||||
verify: false # valine verify code (true/false)
|
|
||||||
pageSize: 10 # comment list page size
|
pageSize: 10 # comment list page size
|
||||||
avatar: monsterid # gravatar style https://valine.js.org/#/avatar
|
avatar: monsterid # gravatar style https://valine.js.org/#/avatar
|
||||||
lang: en # i18n: zh-cn/en
|
lang: en # i18n: zh-CN/zh-TW/en/ja
|
||||||
placeholder: Please leave your footprints # valine comment input placeholder(like: Please leave your footprints )
|
placeholder: Please leave your footprints # valine comment input placeholder(like: Please leave your footprints )
|
||||||
guest_info: nick,mail,link #valine comment header info
|
guest_info: nick,mail,link #valine comment header info
|
||||||
recordIP: false # Record reviewer IP
|
recordIP: false # Record reviewer IP
|
||||||
serverURLs: # This configuration is suitable for domestic custom domain name users, overseas version will be automatically detected (no need to manually fill in)
|
serverURLs: # This configuration is suitable for domestic custom domain name users, overseas version will be automatically detected (no need to manually fill in)
|
||||||
|
mathjax: false
|
||||||
bg: /img/comment_bg.png # valine background
|
bg: /img/comment_bg.png # valine background
|
||||||
count: true # top_img顯示評論數
|
count: true # top_img顯示評論數
|
||||||
|
|
||||||
@@ -493,8 +492,8 @@ subtitle:
|
|||||||
loop: false
|
loop: false
|
||||||
# source調用第三方服務
|
# source調用第三方服務
|
||||||
# source: false 關閉調用
|
# source: false 關閉調用
|
||||||
# source: 1 調用金山詞霸的每日一句(簡體)
|
# source: 1 調用搏天api的隨機語錄(簡體) https://api.btstu.cn/
|
||||||
# source: 2 調用一言網的一句話(簡體) #https://hitokoto.cn/
|
# source: 2 調用一言網的一句話(簡體) https://hitokoto.cn/
|
||||||
# source: 3 調用一句網(簡體) http://yijuzhan.com/
|
# source: 3 調用一句網(簡體) http://yijuzhan.com/
|
||||||
# source: 4 調用今日詩詞(簡體) https://www.jinrishici.com/
|
# source: 4 調用今日詩詞(簡體) https://www.jinrishici.com/
|
||||||
# subtitle 會先顯示 source , 再顯示 sub 的內容
|
# subtitle 會先顯示 source , 再顯示 sub 的內容
|
||||||
@@ -662,21 +661,23 @@ Open_Graph_meta: true
|
|||||||
# 開啟hexo自帶的緩存,加快生成速度
|
# 開啟hexo自帶的緩存,加快生成速度
|
||||||
fragment_cache: true
|
fragment_cache: true
|
||||||
|
|
||||||
# CDN
|
# inject
|
||||||
# 網站必須
|
# 插入代码到头部</head>之前 和 尾部</body>之前
|
||||||
# 可根據需要自行添加js/css
|
inject:
|
||||||
CDN_USE:
|
head:
|
||||||
css:
|
# - <link rel="stylesheet" href="xxxxx">
|
||||||
- /css/index.css
|
bottom:
|
||||||
|
# - <script src="xxxx"></script>
|
||||||
js:
|
|
||||||
- https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js #/js/third-party/jquery.min.js
|
|
||||||
- /js/utils.js
|
|
||||||
- /js/main.js
|
|
||||||
|
|
||||||
# CDN
|
# CDN
|
||||||
# 非必要不要修改
|
# 非必要不要修改
|
||||||
CDN:
|
CDN:
|
||||||
|
# main
|
||||||
|
main_css: /css/index.css
|
||||||
|
jquery: https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js
|
||||||
|
main: /js/main.js
|
||||||
|
utils: /js/utils.js
|
||||||
|
|
||||||
# comments
|
# comments
|
||||||
blueimp_md5: https://cdn.jsdelivr.net/npm/blueimp-md5/js/md5.min.js
|
blueimp_md5: https://cdn.jsdelivr.net/npm/blueimp-md5/js/md5.min.js
|
||||||
gitalk: https://cdn.jsdelivr.net/npm/gitalk@latest/dist/gitalk.min.js
|
gitalk: https://cdn.jsdelivr.net/npm/gitalk@latest/dist/gitalk.min.js
|
||||||
@@ -738,4 +739,5 @@ CDN:
|
|||||||
fontawesome_v4: https://cdn.jsdelivr.net/npm/font-awesome@latest/css/font-awesome.min.css
|
fontawesome_v4: https://cdn.jsdelivr.net/npm/font-awesome@latest/css/font-awesome.min.css
|
||||||
fontawesome_v5: https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css
|
fontawesome_v5: https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css
|
||||||
|
|
||||||
|
# 簡繁轉換
|
||||||
translate: /js/tw_cn.js
|
translate: /js/tw_cn.js
|
||||||
@@ -61,7 +61,7 @@ aside:
|
|||||||
card_tags: Tags
|
card_tags: Tags
|
||||||
card_archives: Archives
|
card_archives: Archives
|
||||||
card_recent_post: Recent Post
|
card_recent_post: Recent Post
|
||||||
card_bookmark: Add to bookmark
|
card_bookmark: Bookmark
|
||||||
card_webinfo:
|
card_webinfo:
|
||||||
headline: Info
|
headline: Info
|
||||||
article_name: Article
|
article_name: Article
|
||||||
|
|||||||
+1
-1
@@ -61,7 +61,7 @@ aside:
|
|||||||
card_tags: Tags
|
card_tags: Tags
|
||||||
card_archives: Archives
|
card_archives: Archives
|
||||||
card_recent_post: Recent Post
|
card_recent_post: Recent Post
|
||||||
card_bookmark: Add to bookmark
|
card_bookmark: Bookmark
|
||||||
card_webinfo:
|
card_webinfo:
|
||||||
headline: Info
|
headline: Info
|
||||||
article_name: Article
|
article_name: Article
|
||||||
|
|||||||
Loaded 3 of 29 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user