Skip to content

Commit

Permalink
breaking change:
Browse files Browse the repository at this point in the history
1. 部分配置更改

feat:
1. 移除 messenger 聊天插件
2. 更新 fackbook 版本號
3. 增加 香港繁體、日文和韓語
4. 使用的新的複製api 代替舊的
5. 增加 umami 分析
6. 增加 umami 獲取訪問量/訪客數
7. snackbar 增加透明度
8. 文章頁下, nav fixed 下 顯示文章標題

improvement:
1. 代碼優化
2. 修改部分用語
3. 回復之前的相對時間邏輯
4. timeline tag 樣式優化
5. 優化 seo
6. 優化 artalk 的最新評論

fix:
1. tag-hide toggle 圓角問題
2. lazyload 為 false 時,artalk 無法正常加載評論的 bug
3. 修復 gallery 出現抖動的 bug
  • Loading branch information
jerryc127 committed Sep 14, 2024
1 parent 48212b9 commit d8a1fa6
Show file tree
Hide file tree
Showing 76 changed files with 1,321 additions and 1,302 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ npm i hexo-theme-butterfly
- [x] Share (Sharejs/Addtoany)
- [X] Comment (Disqus/Disqusjs/Livere/Gitalk/Valine/Waline/Utterances/Facebook Comments/Twikoo/Giscus/Remark42/artalk)
- [x] Multiple Comment System Support
- [x] Online Chats (Chatra/Tidio/Daovoice/Crisp/messenger)
- [x] Online Chats (Chatra/Tidio/Daovoice/Crisp)
- [x] Web analytics
- [x] Google AdSense
- [x] Webmaster Verification
Expand Down
2 changes: 1 addition & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ theme: butterfly
- [x] 多種分享系統(Sharejs/Addtoany)
- [X] 多種評論系統(Disqus/Disqusjs/Livere/Gitalk/Valine/Waline/Utterances/Facebook Comments/Twikoo/Giscus/Remark42/artalk)
- [x] 支持雙評論部署
- [x] 多種在線聊天(Chatra/Tidio/Daovoice/Crisp/messenger
- [x] 多種在線聊天(Chatra/Tidio/Daovoice/Crisp)
- [x] 多種分析系統
- [x] 谷歌廣告/手動廣告位置
- [x] 各種站長驗證
Expand Down
37 changes: 23 additions & 14 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ artalk:
# --------------------------------------

chat:
# Choose: chatra/tidio/daovoice/crisp/messenger
# Choose: chatra/tidio/daovoice/crisp
# Leave it empty if you don't need chat
use:
# Chat Button [recommend]
Expand All @@ -670,11 +670,6 @@ daovoice:
crisp:
website_id:

# https://developers.facebook.com/docs/messenger-platform/discovery/facebook-chat-plugin/
messenger:
pageID:
lang: zh_TW

# --------------------------------------
# Analysis
# --------------------------------------
Expand All @@ -691,6 +686,20 @@ cloudflare_analytics:
# https://clarity.microsoft.com/
microsoft_clarity:

# https://umami.is/
umami_analytics:
enable: false
# For self-hosted setups, configure the hostname of the Umami instance
serverURL:
website_id:
option:
UV_PV:
site_uv: false
site_pv: false
page_pv: false
# Umami Cloud (API key) / self-hosted Umami (token)
token:

# --------------------------------------
# Advertisement
# --------------------------------------
Expand Down Expand Up @@ -787,29 +796,29 @@ beautify:
# Specify the field to beautify (site or post)
field: post
# Specify the icon to be used as a prefix for the title, such as '\f0c1'
title-prefix-icon:
title_prefix_icon:
# Specify the color of the title prefix icon, such as '#F47466'
title-prefix-icon-color:
title_prefix_icon_color:

# Global font settings
# Don't modify the following settings unless you know how they work
font:
global-font-size:
code-font-size:
font-family:
code-font-family:
global_font_size:
code_font_size:
font_family:
code_font_family:

# Font settings for the site title and site subtitle
blog_title_font:
font_link:
font-family:
font_family:

# The setting of divider icon
hr_icon:
enable: true
# The unicode value of Font Awesome icon, such as '\3423'
icon:
icon-top:
icon_top:

# Typewriter Effect
# https://github.com/disjukr/activate-power-mode
Expand Down
58 changes: 29 additions & 29 deletions languages/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ footer:

copy:
success: Copy Successful
error: Copy Error
error: Copy Failed
noSupport: Browser Not Supported

page:
articles: Articles
articles: All Articles
tag: Tag
category: Category
archives: Archives
Expand All @@ -29,26 +29,26 @@ post:
author: Author
link: Link
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 on this blog are licensed under <a href="%s">%s</a> unless otherwise stated.'
recommend: Related Articles
edit: Edited on
edit: Edit

search:
title: Search
load_data: Loading the Database
load_data: Loading Database
input_placeholder: Search for Posts
algolia_search:
hits_empty: "We didn't find any results for the search: ${query}."
hits_empty: 'No results found for: ${query}'
hits_stats: '${hits} results found in ${time} ms'
local_search:
hits_empty: "We didn't find any results for the search: ${query}"
hits_stats: '${hits} results found'
hits_empty: 'No results found for: ${query}'
hits_stats: '${hits} articles found'

pagination:
prev: Previous
next: Next

comment: Comment
comment: Comments

aside:
articles: Articles
Expand All @@ -58,29 +58,29 @@ aside:
card_categories: Categories
card_tags: Tags
card_archives: Archives
card_recent_post: Recent Post
card_recent_post: Recent Posts
card_webinfo:
headline: Info
article_name: Article
headline: Website Info
article_name: Article Count
runtime:
name: Runtime
unit: days
last_push_date:
name: Last Update
site_wordcount: Total Count
site_uv_name: UV
site_pv_name: PV
site_wordcount: Total Word Count
site_uv_name: Unique Visitors
site_pv_name: Page Views
more_button: View More
card_newest_comments:
headline: Latest Comments
loading_text: loading...
loading_text: Loading...
error: Unable to retrieve comments, please check the configuration
zero: No comments
image: image
link: link
code: code
image: Image
link: Link
code: Code
card_toc: Contents
card_post_series: Series
card_post_series: Post Series

date_suffix:
just: Just now
Expand All @@ -93,21 +93,21 @@ donate: Sponsor
share: Share

rightside:
readmode_title: Read Mode
translate_title: Toggle Between Traditional Chinese And Simplified Chinese
night_mode_title: Toggle Between Light And Dark Mode
back_to_top: Back To Top
toc: Table Of Contents
scroll_to_comment: Scroll To Comments
setting: Setting
aside: Toggle between Single-column and Double-column
readmode_title: Reading Mode
translate_title: Toggle Between Traditional and Simplified Chinese
night_mode_title: Toggle Between Light and Dark Mode
back_to_top: Back to Top
toc: Table of Contents
scroll_to_comment: Scroll to Comments
setting: Settings
aside: Toggle Between Single-column and Double-column
chat: Chat

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.
info: Copyright belongs to the author. For commercial use, please contact the author for authorization. For non-commercial use, please indicate the source.

Snackbar:
chs_to_cht: You have switched to Traditional Chinese
Expand Down
60 changes: 30 additions & 30 deletions languages/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ footer:

copy:
success: Copy Successful
error: Copy Error
error: Copy Failed
noSupport: Browser Not Supported

page:
articles: Articles
articles: All Articles
tag: Tag
category: Category
archives: Archives
Expand All @@ -29,26 +29,26 @@ post:
author: Author
link: Link
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 on this blog are licensed under <a href="%s">%s</a> unless otherwise stated.'
recommend: Related Articles
edit: Edited on
edit: Edit

search:
title: Search
load_data: Loading the Database
load_data: Loading Database
input_placeholder: Search for Posts
algolia_search:
hits_empty: "We didn't find any results for the search: ${query}."
hits_empty: 'No results found for: ${query}'
hits_stats: '${hits} results found in ${time} ms'
local_search:
hits_empty: "We didn't find any results for the search: ${query}"
hits_stats: '${hits} results found'
hits_empty: 'No results found for: ${query}'
hits_stats: '${hits} articles found'

pagination:
prev: Previous
next: Next

comment: Comment
comment: Comments

aside:
articles: Articles
Expand All @@ -58,29 +58,29 @@ aside:
card_categories: Categories
card_tags: Tags
card_archives: Archives
card_recent_post: Recent Post
card_recent_post: Recent Posts
card_webinfo:
headline: Info
article_name: Article
headline: Website Info
article_name: Article Count
runtime:
name: Runtime
unit: days
last_push_date:
name: Last Update
site_wordcount: Total Count
site_uv_name: UV
site_pv_name: PV
site_wordcount: Total Word Count
site_uv_name: Unique Visitors
site_pv_name: Page Views
more_button: View More
card_newest_comments:
headline: Latest Comments
loading_text: loading...
loading_text: Loading...
error: Unable to retrieve comments, please check the configuration
zero: No comments
image: image
link: link
code: code
image: Image
link: Link
code: Code
card_toc: Contents
card_post_series: Series
card_post_series: Post Series

date_suffix:
just: Just now
Expand All @@ -93,21 +93,21 @@ donate: Sponsor
share: Share

rightside:
readmode_title: Read Mode
translate_title: Toggle Between Traditional Chinese And Simplified Chinese
night_mode_title: Toggle Between Light And Dark Mode
back_to_top: Back To Top
toc: Table Of Contents
scroll_to_comment: Scroll To Comments
setting: Setting
aside: Toggle between Single-column and Double-column
readmode_title: Reading Mode
translate_title: Toggle Between Traditional and Simplified Chinese
night_mode_title: Toggle Between Light and Dark Mode
back_to_top: Back to Top
toc: Table of Contents
scroll_to_comment: Scroll to Comments
setting: Settings
aside: Toggle Between Single-column and Double-column
chat: Chat

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.
info: Copyright belongs to the author. For commercial use, please contact the author for authorization. For non-commercial use, please indicate the source.

Snackbar:
chs_to_cht: You have switched to Traditional Chinese
Expand All @@ -118,4 +118,4 @@ Snackbar:
loading: Loading...
load_more: Load More

error404: Page Not Found
error404: Page Not Found
Loading

0 comments on commit d8a1fa6

Please sign in to comment.