mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-10-04 14:22:01 +08:00
1. fix Traditional Chinese and Simplified Chinese Conversion
2. Add the option to hidden the aside items #2 3. Add the option to change subtitle 4. Add the option to change the font 5. fix read-mode and night-mode 6. fix the bugs of the cover #2
This commit is contained in:
1 parent
b4ae5c6c3e
commit
79971d49db
23 files changed
+763
-815
No files matched your search
@@ -19,6 +19,8 @@ git clone https://github.com/jerryc127/hexo-theme-butterfly.git themes/Butterfly
|
|||||||
theme: Butterfly
|
theme: Butterfly
|
||||||
```
|
```
|
||||||
|
|
||||||
|
>如果你没有pug以及stylus的渲染器,请下载安装: npm install hexo-renderer-jade hexo-renderer-stylus --save or yarn add hexo-renderer-jade hexo-renderer-stylus
|
||||||
|
|
||||||
## 文档
|
## 文档
|
||||||
可查看[这里](https://molunerfinn.com/hexo-theme-melody-doc/zh-Hans/#%E7%89%B9%E6%80%A7)
|
可查看[这里](https://molunerfinn.com/hexo-theme-melody-doc/zh-Hans/#%E7%89%B9%E6%80%A7)
|
||||||
|
|
||||||
@@ -36,6 +38,7 @@ comments:
|
|||||||
reward:
|
reward:
|
||||||
description:
|
description:
|
||||||
top_img:
|
top_img:
|
||||||
|
cover: (封面)
|
||||||
---
|
---
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
+54
-19
@@ -27,7 +27,7 @@ menu:
|
|||||||
# Favicon
|
# Favicon
|
||||||
# use my-favicon.ico to avoid duplicate favicon of melody theme
|
# use my-favicon.ico to avoid duplicate favicon of melody theme
|
||||||
# ---------------
|
# ---------------
|
||||||
favicon: /img/favicon.png
|
favicon: /img/favicon.ico
|
||||||
|
|
||||||
# PWA
|
# PWA
|
||||||
# See https://github.com/JLHwung/hexo-offline
|
# See https://github.com/JLHwung/hexo-offline
|
||||||
@@ -46,6 +46,7 @@ favicon: /img/favicon.png
|
|||||||
# Highlight theme
|
# Highlight theme
|
||||||
# ---------------
|
# ---------------
|
||||||
highlight_theme: light
|
highlight_theme: light
|
||||||
|
highlight_copy: true
|
||||||
|
|
||||||
code_word_wrap: false
|
code_word_wrap: false
|
||||||
|
|
||||||
@@ -74,7 +75,7 @@ algolia_search:
|
|||||||
# Please see doc for more details: https://molunerfinn.com/hexo-theme-melody-doc/#/third-party-support?id=local-search
|
# Please see doc for more details: https://molunerfinn.com/hexo-theme-melody-doc/#/third-party-support?id=local-search
|
||||||
# ---------------
|
# ---------------
|
||||||
local_search:
|
local_search:
|
||||||
enable: true
|
enable: false
|
||||||
labels:
|
labels:
|
||||||
input_placeholder: Search for Posts
|
input_placeholder: Search for Posts
|
||||||
hits_empty: "We didn't find any results for the search: ${query}" # if there are no result
|
hits_empty: "We didn't find any results for the search: ${query}" # if there are no result
|
||||||
@@ -234,7 +235,7 @@ disqus:
|
|||||||
|
|
||||||
# valine comment system. https://valine.js.org
|
# valine comment system. https://valine.js.org
|
||||||
valine:
|
valine:
|
||||||
enable: false # if you want use valine,please set this value is ture
|
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
|
notify: false # valine mail notify (true/false) https://github.com/xCss/Valine/wiki
|
||||||
@@ -305,22 +306,17 @@ Flink:
|
|||||||
|
|
||||||
flinks:
|
flinks:
|
||||||
[
|
[
|
||||||
{'name': '夢魘小棧',
|
{'name': 'JerryC',
|
||||||
'link': 'https://blog.ihoey.com',
|
'link': 'https://jerryc.me/',
|
||||||
'avatar': 'https://cdn.dode.top/avatar.png',
|
'avatar': 'https://jerryc.me/img/avatar.png',
|
||||||
'descr': '心,若沒有棲息的地方,到哪裏都是流浪......'},
|
'descr': '今日事,今日畢'},
|
||||||
{'name': '冰峯博客',
|
{'name': 'molunerfinn',
|
||||||
'link':'https://www.ad-s.cn/',
|
'link':'https://molunerfinn.com',
|
||||||
'avatar': 'https://secure.gravatar.com/avatar/4074cd3e035c6e5796f6c263ef8ef0b8?s=56&d=wavatar&r=g',
|
'avatar': 'https://blog-1251750343.cos.ap-beijing.myqcloud.com/blog/avatar.jpeg',
|
||||||
'descr': '男人就應該保持冷靜,沸騰的水只會被蒸發掉。'}
|
'descr': 'For MElody'}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
## chinese traditional to Simplified
|
|
||||||
translate:
|
|
||||||
enable: true
|
|
||||||
|
|
||||||
|
|
||||||
runtimeshow:
|
runtimeshow:
|
||||||
enable: true
|
enable: true
|
||||||
start_date: 6/7/2018 00:00:00
|
start_date: 6/7/2018 00:00:00
|
||||||
@@ -366,15 +362,54 @@ canvas_ribbon_piao:
|
|||||||
enable: true
|
enable: true
|
||||||
|
|
||||||
|
|
||||||
# 避免重复网址分散seo
|
# 避免重複網址分散seo
|
||||||
canonical: true
|
canonical: true
|
||||||
|
|
||||||
# 禁止百度转码
|
# 禁止百度轉碼
|
||||||
disable_baidu_transformation: true
|
disable_baidu_transformation: true
|
||||||
|
|
||||||
twitter_meta: true
|
twitter_meta: true
|
||||||
Open_Graph_meta: true
|
Open_Graph_meta: true
|
||||||
|
|
||||||
|
#閲讀模式
|
||||||
readmode:
|
readmode:
|
||||||
enable: true
|
enable: true
|
||||||
|
|
||||||
|
font:
|
||||||
|
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
|
||||||
|
code-font: consolas, Menlo, "PingFang SC", "Microsoft JhengHei","Microsoft YaHei", monospace, Helvetica Neue For Number
|
||||||
|
|
||||||
|
# 主頁subtitle
|
||||||
|
subtitle:
|
||||||
|
enable: true
|
||||||
|
sub1: 今日事,今日畢
|
||||||
|
sub2: Never put off till tomorrow what you can do today
|
||||||
|
|
||||||
|
#側邊欄顯示設置
|
||||||
|
aside:
|
||||||
|
card_author: true
|
||||||
|
card_announcement: true
|
||||||
|
card_recent_post: true
|
||||||
|
card_categories: true
|
||||||
|
card_tags: true
|
||||||
|
card_archives: true
|
||||||
|
card_webinfo: true
|
||||||
|
|
||||||
|
|
||||||
|
## chinese traditional to Simplified
|
||||||
|
translate:
|
||||||
|
enable: true
|
||||||
|
# 默認按鈕顯示文字
|
||||||
|
default: 簡
|
||||||
|
#网站默认语言,1: 繁體中文, 2: 简体中文
|
||||||
|
defaultEncoding: 1
|
||||||
|
#延迟时间,若不在前, 要设定延迟翻译时间, 如100表示100ms,默认为0
|
||||||
|
translateDelay: 0
|
||||||
|
#博客网址
|
||||||
|
cookieDomain: "https://jerryc.me/"
|
||||||
|
#當文字是簡體時,按鈕顯示的文字
|
||||||
|
msgToTraditionalChinese: "繁"
|
||||||
|
#當文字是繁體時,按鈕顯示的文字
|
||||||
|
msgToSimplifiedChinese: "简"
|
||||||
|
|
||||||
+14
-3
@@ -25,7 +25,7 @@ post:
|
|||||||
created: Created
|
created: Created
|
||||||
updated: Updated
|
updated: Updated
|
||||||
wordcount: Word count
|
wordcount: Word count
|
||||||
min2read: 'Reading time: %s min'
|
min2read: "Reading time: %s min"
|
||||||
page_pv: Post View
|
page_pv: Post View
|
||||||
copyright:
|
copyright:
|
||||||
author: Author
|
author: Author
|
||||||
@@ -33,7 +33,6 @@ post:
|
|||||||
copyright_notice: Copyright Notice
|
copyright_notice: Copyright Notice
|
||||||
copyright_content: 'All articles in this blog are licensed under <a href="%s">%s</a> unless stating additionally.'
|
copyright_content: 'All articles in this blog are licensed under <a href="%s">%s</a> unless stating additionally.'
|
||||||
|
|
||||||
|
|
||||||
search: Search
|
search: Search
|
||||||
algolia_search:
|
algolia_search:
|
||||||
input_placeholder: Search for Posts
|
input_placeholder: Search for Posts
|
||||||
@@ -57,7 +56,7 @@ aside:
|
|||||||
tags: Tags
|
tags: Tags
|
||||||
categories: Categories
|
categories: Categories
|
||||||
card_announcement: Announcement
|
card_announcement: Announcement
|
||||||
card_categories: Categories
|
card_categories: Categories
|
||||||
card_tags: Tags
|
card_tags: Tags
|
||||||
card_archives: Archives
|
card_archives: Archives
|
||||||
card_recent_post: Recent Post
|
card_recent_post: Recent Post
|
||||||
@@ -71,3 +70,15 @@ aside:
|
|||||||
|
|
||||||
donate: Donate
|
donate: Donate
|
||||||
share: Share
|
share: Share
|
||||||
|
|
||||||
|
bookmark:
|
||||||
|
title: Bookmark
|
||||||
|
message_prev: Press
|
||||||
|
message_next: to bookmark this page
|
||||||
|
|
||||||
|
rightside:
|
||||||
|
readmode_title: Read Mode
|
||||||
|
font_plus_title: Increase font size
|
||||||
|
font_minus_title: Decrease font size
|
||||||
|
translate_title: Traditional Chinese and Simplified Chinese Conversion
|
||||||
|
night_mode_title: Dark Mode
|
||||||
Loaded 3 of 23 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user