mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-10-04 06:22:00 +08:00
1. 更改手機頁面的menu和toc的顯示方式和顯示特效(ipad也能看TOC)
1. 更改手機頁面的menu和toc的顯示方式和顯示特效(ipad也能看TOC) 3. 可設置複製時,内容自動加上版權信息 4. 可修改tag的top_img 5. 可修改category的top_img 6. 可修改valine的背景 7. archives頁UI優化 8. ICP增加icon #37 9. 可設置主頁top_img的高度 10. 可設置主頁site-info的位置 11. category頁和tag頁的UI可以設置與主頁UI一樣 #31 12. 主頁subtitle可設置多個句子(不再限制2個) #37 13. 設置menu時,頭尾添加空格不受影響 14. 調整post頁的佈局 15. 书签添加icon 16. 公告icon效果 17. 首頁歸檔模塊,可設置數量限制,會顯示'查看更多'按鈕 18. 右下角按鈕調整。 19. 修复文章cover隨機图片生成,同一篇文章,不同地方的cover顯示不一样的bug 20. 修復gitalk語言設置無效的bug #35 21. 修復post頁面,當沒有設置word count時,閲讀量前有'|" 22. 修复sub-menu在safari的显示问题 23. 修复tags页评论居中问题 24. 修复header a hover 白色问题 25. 修復夜間模式下footer的顔色bug 26. 修復英文語言下,書簽英文顯示不完整的問題
This commit is contained in:
1 parent
83dc0559c0
commit
2eb15123f9
57 files changed
+1271
-1057
No files matched your search
+66
-29
@@ -1,29 +1,20 @@
|
|||||||
# Theme color for customize
|
|
||||||
# Notice: color value must in double quotes like "#000" or may cause error!
|
|
||||||
# ---------------
|
|
||||||
# theme_color:
|
|
||||||
# enable: true
|
|
||||||
# main: "#49B1F5"
|
|
||||||
# paginator: "#00c4b6"
|
|
||||||
# button_hover: "#FF7242"
|
|
||||||
# text_selection: "#00c4b6"
|
|
||||||
# link_color: "#99a9bf"
|
|
||||||
# meta_color: '#858585'
|
|
||||||
# hr_color: "#A4D8FA"
|
|
||||||
# read-mode-bg_color: '#FAF9DE'
|
|
||||||
# inline-code-color: '#F47466'
|
|
||||||
|
|
||||||
# Main menu navigation
|
# Main menu navigation
|
||||||
# format: xxx: /xxx/||icon
|
|
||||||
# ---------------
|
# ---------------
|
||||||
|
# format: xxx: 連結 || icon
|
||||||
|
# sub-menu
|
||||||
|
# xxx || icon:
|
||||||
|
# xxx || 連結 || icon
|
||||||
menu:
|
menu:
|
||||||
Home: /||fa fa-home
|
Home: / || fa fa-home
|
||||||
Archives: /archives/||fa fa-archive
|
Archives: /archives/ || fa fa-archive
|
||||||
Tags: /tags/||fa fa-tags
|
Tags: /tags/ || fa fa-tags
|
||||||
Categories: /categories/||fa fa-folder-open
|
Categories: /categories/ || fa fa-folder-open
|
||||||
Link: /link/||fa fa-link
|
Link: /link/ || fa fa-link
|
||||||
About: /about/||fa fa-heart
|
About: /about/ || fa fa-heart
|
||||||
# #XXX: /xxx
|
List||fa fa-list:
|
||||||
|
- Music || /music/ || fa fa-music
|
||||||
|
- Movie || /movies/ || fa fa-film
|
||||||
|
|
||||||
|
|
||||||
# Favicon
|
# Favicon
|
||||||
@@ -53,6 +44,13 @@ highlight_shrink: false #代碼框不展開,需點擊 '>' 打開
|
|||||||
|
|
||||||
code_word_wrap: false
|
code_word_wrap: false
|
||||||
|
|
||||||
|
# copy setting
|
||||||
|
# 是否禁止複製(如果禁止,highlight_copy的功能將無效)
|
||||||
|
# copyright 複製的内容後面加上版權信息
|
||||||
|
copy:
|
||||||
|
enable: false # true 開啓 / false 禁止
|
||||||
|
copyright: false
|
||||||
|
|
||||||
# social settings
|
# social settings
|
||||||
# formal:
|
# formal:
|
||||||
# icon: link
|
# icon: link
|
||||||
@@ -149,6 +147,12 @@ default_cover: https://cdn.jsdelivr.net/gh/jerryc127/CDN@latest/cover/default_bg
|
|||||||
# the banner image of archive page
|
# the banner image of archive page
|
||||||
archive_img: https://cdn.jsdelivr.net/gh/jerryc127/CDN@latest/Photo/archive.jpg
|
archive_img: https://cdn.jsdelivr.net/gh/jerryc127/CDN@latest/Photo/archive.jpg
|
||||||
|
|
||||||
|
# the banner image of tag page
|
||||||
|
tag_img: https://cdn.jsdelivr.net/gh/jerryc127/CDN/img/tag-bg.png
|
||||||
|
|
||||||
|
# the banner image of category page
|
||||||
|
category_img: https://cdn.jsdelivr.net/gh/jerryc127/CDN/img/category-bg
|
||||||
|
|
||||||
# if the photo link cannot connect,it will show that
|
# if the photo link cannot connect,it will show that
|
||||||
lodding_bg:
|
lodding_bg:
|
||||||
flink: /img/friend_404.gif
|
flink: /img/friend_404.gif
|
||||||
@@ -228,6 +232,7 @@ disqus:
|
|||||||
# repo:
|
# repo:
|
||||||
# owner:
|
# owner:
|
||||||
# admin:
|
# admin:
|
||||||
|
# language: # en , zh-CN , zh-TW
|
||||||
#### Using this js for redirect to gitalk container after login
|
#### Using this js for redirect to gitalk container after login
|
||||||
#### See https://github.com/gitalk/gitalk/issues/125
|
#### See https://github.com/gitalk/gitalk/issues/125
|
||||||
# js: https://cdn.jsdelivr.net/gh/upupming/gitalk@36368e5dffd049e956cdbbd751ff96c28d8255cf/dist/gitalk.min.js
|
# js: https://cdn.jsdelivr.net/gh/upupming/gitalk@36368e5dffd049e956cdbbd751ff96c28d8255cf/dist/gitalk.min.js
|
||||||
@@ -243,7 +248,8 @@ valine:
|
|||||||
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/en
|
||||||
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 inf
|
guest_info: nick,mail,link #valine comment header info
|
||||||
|
bg: /img/comment_bg.png # valine background
|
||||||
|
|
||||||
##### Footer Settings ####
|
##### Footer Settings ####
|
||||||
# ------------------------------------
|
# ------------------------------------
|
||||||
@@ -258,6 +264,7 @@ ICP:
|
|||||||
enable: false
|
enable: false
|
||||||
url:
|
url:
|
||||||
text:
|
text:
|
||||||
|
icon: /img/icp.png
|
||||||
|
|
||||||
|
|
||||||
#### 站長驗證 ####
|
#### 站長驗證 ####
|
||||||
@@ -307,6 +314,35 @@ related_post:
|
|||||||
#### 美化/效果 ####
|
#### 美化/效果 ####
|
||||||
#--------------------------------
|
#--------------------------------
|
||||||
|
|
||||||
|
# Theme color for customize
|
||||||
|
# Notice: color value must in double quotes like "#000" or may cause error!
|
||||||
|
# ---------------
|
||||||
|
# theme_color:
|
||||||
|
# enable: true
|
||||||
|
# main: "#49B1F5"
|
||||||
|
# paginator: "#00c4b6"
|
||||||
|
# button_hover: "#FF7242"
|
||||||
|
# text_selection: "#00c4b6"
|
||||||
|
# link_color: "#99a9bf"
|
||||||
|
# meta_color: '#858585'
|
||||||
|
# hr_color: "#A4D8FA"
|
||||||
|
# read-mode-bg_color: '#FAF9DE'
|
||||||
|
# inline-code-color: '#F47466'
|
||||||
|
|
||||||
|
# 主頁設置
|
||||||
|
# 默認top_img全屏,site_info在中間
|
||||||
|
# 使用默認, 都無需填寫(建議默認)
|
||||||
|
index_site_info_top: #主頁標題距離頂部距離 例如 300px/300em/300rem/10%
|
||||||
|
index_top_img_height: #主頁top_img高度 例如 300px/300em/300rem 不能使用百分比
|
||||||
|
|
||||||
|
|
||||||
|
# category和tag頁的UI設置
|
||||||
|
# index 值代表 UI將與首頁的UI一樣
|
||||||
|
# 默認跟archives頁面UI一樣
|
||||||
|
category_ui: # 留空或index
|
||||||
|
tag_ui: # 留空或index
|
||||||
|
|
||||||
|
|
||||||
# 設置網站背景
|
# 設置網站背景
|
||||||
# 可設置圖片 或者 顔色
|
# 可設置圖片 或者 顔色
|
||||||
# 圖片格式 background: url(http://xxxxxx.com/xxx.jpg)
|
# 圖片格式 background: url(http://xxxxxx.com/xxx.jpg)
|
||||||
@@ -366,14 +402,14 @@ post_beautify:
|
|||||||
# 全局字體
|
# 全局字體
|
||||||
font:
|
font:
|
||||||
enable: false
|
enable: false
|
||||||
font-family: Lato, Helvetica Neue For Number, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, PingFang SC, Hiragino Sans GB,"Microsoft JhengHei", "MicrMicrosoft YaHei", Helvetica Neue, Helvetica, Arial, sans-serif
|
font-family: Lato, Helvetica Neue For Number, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, PingFang SC, Hiragino Sans GB, MicrMicrosoft YaHei", Helvetica Neue, Helvetica, Arial, sans-serif
|
||||||
code-font: consolas, Menlo, "PingFang SC", "Microsoft JhengHei","Microsoft YaHei", monospace, Helvetica Neue For Number
|
code-font: consolas, Menlo, "PingFang SC", "Microsoft YaHei", monospace, Helvetica Neue For Number
|
||||||
|
|
||||||
# 網站名字字體
|
# 網站名字字體
|
||||||
# 左上角網站名字 主頁居中網站名字
|
# 左上角網站名字 主頁居中網站名字
|
||||||
blog_title_font:
|
blog_title_font:
|
||||||
font_link: https://fonts.googleapis.com/css?family=Titillium+Web #字體鏈接
|
font_link: https://fonts.googleapis.com/css?family=Titillium+Web #字體鏈接
|
||||||
font-family: Titillium Web, PingFang SC, Hiragino Sans GB, "Microsoft JhengHei", "Microsoft YaHei", Helvetica Neue, Helvetica, Arial, sans-serif
|
font-family: Titillium Web, PingFang SC, Hiragino Sans GB, "Microsoft YaHei", Helvetica Neue, Helvetica, Arial, sans-serif
|
||||||
|
|
||||||
# 水平分隔綫
|
# 水平分隔綫
|
||||||
hr:
|
hr:
|
||||||
@@ -383,11 +419,12 @@ hr:
|
|||||||
|
|
||||||
# 主頁subtitle
|
# 主頁subtitle
|
||||||
# 打字效果
|
# 打字效果
|
||||||
|
# (如果有英文逗號' , ',請使用轉義字符 ,)
|
||||||
subtitle:
|
subtitle:
|
||||||
enable: true
|
enable: true
|
||||||
sub1: 今日事,今日畢
|
sub:
|
||||||
sub2: Never put off till tomorrow what you can do today #如果有符號 ' ,記得前面加上 \
|
- 今日事,今日畢
|
||||||
|
- Never put off till tomorrow what you can do today
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -82,5 +82,15 @@ rightside:
|
|||||||
font_minus_title: Decrease font size
|
font_minus_title: Decrease font size
|
||||||
translate_title: Traditional Chinese and Simplified Chinese Conversion
|
translate_title: Traditional Chinese and Simplified Chinese Conversion
|
||||||
night_mode_title: Dark Mode
|
night_mode_title: Dark Mode
|
||||||
|
back_to_top: Back to top
|
||||||
|
toc: Table of Contents
|
||||||
|
scroll_to_comment: Scroll to comment
|
||||||
|
setting: Setting
|
||||||
|
|
||||||
runtime_unit: days
|
runtime_unit: days
|
||||||
|
|
||||||
|
copy_copyright:
|
||||||
|
author: Author
|
||||||
|
link: Link
|
||||||
|
source: Source
|
||||||
|
info: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
|
||||||
@@ -81,5 +81,15 @@ rightside:
|
|||||||
font_minus_title: Decrease font size
|
font_minus_title: Decrease font size
|
||||||
translate_title: Traditional Chinese and Simplified Chinese Conversion
|
translate_title: Traditional Chinese and Simplified Chinese Conversion
|
||||||
night_mode_title: Dark Mode
|
night_mode_title: Dark Mode
|
||||||
|
back_to_top: Back to top
|
||||||
|
toc: Table of Contents
|
||||||
|
scroll_to_comment: Scroll to comment
|
||||||
|
setting: Setting
|
||||||
|
|
||||||
runtime_unit: days
|
runtime_unit: days
|
||||||
|
|
||||||
|
copy_copyright:
|
||||||
|
author: Author
|
||||||
|
link: Link
|
||||||
|
source: Source
|
||||||
|
info: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
|
||||||
Loaded 3 of 57 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user