This article is translated from ChatGPT.
The release notes for versions 4.9.0 and later will be published as separate articles. Please check the Release Notes for more information.
4.9.0 (2023/06/06)
4.9.0 (2023/06/06)
Feature
Adapted to mermaid v10
When the screen is larger than 2000px, the display area is increased
Header and footer can be configured to add black translucent masks
1 | +# Add mask to header or footer |
Latest comments in artalk are now called directly through the API
Latest comments and comment count in waline are now called directly through the API
Clicking the chat button in the lower right corner again will close the chat
Adapted to the new version of artalk
Supports random order of friend links
Fix
Fixed the bug of inline mathjax causing scrolling
Fixed the bug that when top_img is a color, the top of the reading mode still shows the color
Fixed the bug that the sub of subtitle configuration did not take effect
Improvement
Updated hexo-renderer-stylus
Beautification optimization of hr to avoid affecting the layout of third-party plugins
Optimized mediumZoom
Fine-tuned the homepage
When the latest comments are configured, there will be no error if comments are not configured
Optimized tidio, crisp, daovoice, messenger, and chatra code
4.8.5 (2023/05/09)
4.8.5 (2023/05/09)
Features
- Artalk supports clicking to open large images.
- After setting to switch between light and dark mode with the system, comments and mermaid will also switch colors accordingly.
- Artalk's latest comments now read the avatar CDN and default avatar from the Artalk configuration.
Fixes
- Fixed the bug where Artalk could not get the latest comments.
- Fixed the bug where the code block could not be copied when the copy button was clicked before the block was expanded.
Improvements
- Code and performance optimization.
- Artalk now gets the comment count by using
loadCountWidget
instead ofLoadCountWidget
.
4.8.1 (2023/04/10)
4.8.0 (2023/04/10)
4.8.0 (2023/04/10)
Breaking Change
Removed Gitter integration.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22-# gitter
-# https://gitter.im/
-gitter:
- enable: false
- room:
2. Renamed parameters in the CDN options section.
```diff
CDN:
option:
- # algolia_search_v4:
- # instantsearch_v4:
- # fancybox_css_v4:
- # fancybox_v4:
- # fontawesomeV6:
+ # algolia_search:
+ # instantsearch:
+ # fancybox_css:
+ # fancybox:
+ # fontawesome:
Feature
Configurable color for social media icons.
Added support for rendering music scores using abcjs library.
1
2
3
4
5
6+# abcjs (樂譜渲染)
+# See https://github.com/paulrosen/abcjs
+# ---------------
+abcjs:
+ enable: false
+ per_page: trueUpdated to support the latest version of typed.js.
Implemented Algolia search, clicking on search results now redirects to the corresponding page.
Refactored local search
1
2
3
4
5
6
7
8
9
10# Local search
local_search:
enable: false
# Preload the search data when the page loads.
preload: false
+ # Show top n results per article, show all results by setting to -1
+ top_n_per_article: 1
+ # Unescape html strings to the readable one.
+ unescape: false
CDN:Upgraded fancybox to version 5.
Updated Facebook JavaScript version.
CDN configuration now includes versioning for local links.
Added support for customizing the JS address of the giscus commenting system.
1
2
3CDN:
option:
+ giscus: xxxxxAdded the ability to customize the switch time for dark mode.
1
2
3
4
5# dark mode
darkmode:
+ # Set the light mode time. The value is between 0 and 24. If not set, the default value is 6 and 18
+ start: # 8
+ end: # 22
Fix
- Fixed a bug where the search content was covered by the system search box in Safari.
- Fixed a bug where the fullpage loading displayed a scrollbar.
- Fixed an issue where the limit was not effective when card_tags.color was set to true.
- Fixed a bug where the image identification was incorrect due to the uppercase suffix when setting an image.
- Fixed an issue where pace.js was triggered by the addition of an anchor when archor was enabled.
Improvement
- When the browser width is greater than 2000px, the card width changes from 1500px to 1700px.
- When beautify is not enabled, hr displays the default style.
- When mobile Safari is in landscape mode, the webpage displays in full screen.
- The social icon rotates 180 degrees on hover.
- Optimized viewport SEO.
- Code optimization.
4.7.0 (2023/02/20)
4.7.0 (2023/02/20)
Feature
The
card_tags
can be configured withorderby
andorder
parameters.1
2
3
4
5
6
7
8aside:
card_tags:
enable: true
limit: 40 # if set 0 will show all
color: false
+ orderby: random # Order of tags, random/name/length
+ order: 1 # Sort of order. 1, asc for ascending; -1, desc for descending
sort_order: # Don't modify the setting unless you know how it worksThe tag page supports configuring the
orderby
andorder
parameters.Add
docsearch
.1
2
3
4
5
6
7
8+# Docsearch
+# https://docsearch.algolia.com/
+docsearch:
+ enable: false
+ appId:
+ apiKey:
+ indexName:
+ option:Local search, clicking on the content of an article will also redirect to the corresponding page.
The
gallery
tag plugin adds support for retrieving JSON.
Fix
- Fixed a bug where there was no spacing in the aside card after setting card_author and card_announcement to false.
- Fixed an issue where the latest comments in artalk could not be loaded.
- Fixed a bug where waline's CSS was not loaded in pjax mode.
- Fixed a bug in local search where certain symbols could not be searched.
Improvement
- Refactored getCSS function.
- Reduced the size of the scroll bar.
4.6.1 (2023/01/18)
hideToggle 4.6.1 (2023/01/18)
Breaking Change
Configurable parameters for typed.js
1
2
3
4
5
6
7
8
9
10subtitle:
- # Effect Speed Options
- startDelay: 300 # time before typing starts in milliseconds
- typeSpeed: 150 # type speed in milliseconds
- backSpeed: 50 # backspacing speed in milliseconds
- # loop
- loop: true
+ # Customize typed.js
+ # https://github.com/mattboldt/typed.js/#customization
+ typed_option:
Fix
- Fixed bug where typeJSFn was being assigned multiple times.
- Fixed bug where the title had a shadow after fixing the status bar.
- Fixed bug where the gallery tag truncated the image link, causing a 404 error when loading the image.
- Fixed bug where clicking on certain scroll-up buttons after fixing the navigation bar would result in the target section being obscured by the navigation bar.
- Fixed bug where the table of contents (toc) was being obscured after fixing the navigation bar.
Improvement
- When switching between simplified and traditional Chinese, the lang attribute of the HTML will be changed.
4.6.0 (2023/01/15)
4.6.0 (2023/01/15)
Breaking Change
Optimization of cover display #1101
When the cover is set to false or no value is obtained for the cover, the background of the related recommended articles and pagination buttons on the article page will be displayed in the theme color.
Feature
toc can be set to show preview progress
1
2toc:
+ scroll_percent: trueAdded preview progress display to the bottom right button
1
2+# show scroll percent in scroll-to-top button
+rightside_scroll_percent: trueCover can be configured with color/gradient color, etc.
default_cover can be configured with color.
Navigation bar settings: hide blog name / set logo / set fixed navigation bar # 1150 #1104
1
2
3
4+nav:
+ logo: # image
+ display_title: true
+ fixed: false # fixed navigation barBuSuanZi (a website traffic analysis tool) can be configured with CDN #1132
Added lazy loading to gallery tag plugin, added lazyload rowHeight and limit attribute configuration
Updated plugins.yml
Fix
- Fixed bug where hexo-log couldn't be loaded #1102
- Fixed bug where special characters didn't display results when using local search
- Fixed bug where colors with "/" in the header image and footer configuration couldn't be displayed
- Fixed bug where code blocks still displayed colored backgrounds in reading mode (custom code blocks) #1139
- Fixed bug where avatars of friend links may not be displayed when lazy loading is enabled and friend link data is imported using flink_url #1146
- Fixed bug where waline js was loaded repeatedly under pjax
Improvement
- When setting the date as a relative date, the date format of the article and the latest comment are unified as year, month, and day.
- Fixed bug where special characters didn't display results when using local search
- Added explanatory text to the article pagination buttons when hovering over them with the mouse
- The display order of the top image on the article page is top_img > cover > default_top_img
- Modified configuration file comments
- Optimized the scroll position of search result display
- Search results will not split words when wrapping
- Canonical link is generated based on the configuration
Remove
Removed cnzz analytics
1
2
3-# CNZZ Analytics
-# https://www.umeng.com/
-cnzz_analytics:
4.5.1 (2022/10/31)
4.5.0 (2022/10/21)
4.5.0 (2022/10/21)
Breaking Change
Open_Graph_meta setting change, allowing configuration of additional parameters
1
2
3
4-Open_Graph_meta: true
+Open_Graph_meta:
+ enable: true
+ option:Preloader setting change, adding pace.js loading animation bar
1
2
3
4
5
6
7
8
9-preloader: false
+preloader:
+ enable: false
+ # source
+ # 1. fullpage-loading
+ # 2. pace (progress bar)
+ source: 1
+ # pace theme (see https://codebyzach.github.io/pace/)
+ pace_css_url:Anchor setting change, allowing separate configuration for button and automatic update of anchor, setting button icon, and setting button always show
1
2
3
4
5
6
7-anchor: false
+anchor:
+ button:
+ enable: false
+ always_show: false
+ icon: # the unicode value of Font Awesome icon, such as '\3423'
+ auto_update: false # when you scroll in post, the URL will update according to header id.
Feature
- Update Facebook sdk to v15
Fix
- Fix
throttle
function invocation method #1075 - Fix bug in controlling loadFBComment error #1066
- Fix layout inconsistency issue when screen width is 768px #1032
Improvement
- Add additional characters to traditional and simplified Chinese conversion #1076
- Local preview, refresh of friendly link page, content will not be duplicated
- Update plugins.yml
Remove
- Remove meta keywords
4.4.0 (2022/08/18)
4.4.0 (2022/08/18)
Feature
Added Facebook Messenger plugin for online chat
1
2
3
4+messenger:
+ enable: false
+ pageID:
+ lang: zh_TW # Language en_US/zh_CN/zh_TW and so onAdded Artalk comment function
1
2
3
4
5+artalk:
+ server:
+ site:
+ visitor: false
+ option:Added parameter configuration for typing effect on homepage
1
2
3
4
5
6
7subtitle:
...
+ # Effect Speed Options
+ startDelay: 300 # time before typing starts in milliseconds
+ typeSpeed: 150 # type speed in milliseconds
+ backSpeed: 50 # backspacing speed in milliseconds
...
Fix
- Fixed bug where Facebook comments were not loading correctly after opening anchor
- Fixed bug where Facebook comment count was not loading
- Fixed bug where subdirectory hover did not have rounded corners #965
4.3.1 (2022/06/27)
4.3.0 (2022/06/24)
4.3.0 (2022/06/24)
Breaking Change
Hide aside setting for archives has been changed.
1
2
3
4aside:
- archive: true
+ display:
+ archive: trueAdapt to disqusjs 3.0.
Feature
The number of articles displayed on sub-archive pages will no longer show the total number of articles, but the corresponding number of sub-archive articles.
Added loading display for some data loading.
Added the ability to hide aside on tag and category pages.
1
2
3
4aside:
+ display:
+ tag: true
+ category: trueClicking on the archive date will now jump to the page, and the title will display the date instead of the word "Archive".
Adapted to the upgrade of katex and removed katex copy-tex.css.
Added one-click configuration for CDN using cdnjs.
Added one-click configuration for CDN using unpkg.
Added the ability to set version and custom format for CDN.
1
2
3CDN:
+ version: false
+ custom_format:Added support for Remark42 comment system.
1
2
3
4
5
6+# Remark42
+# https://remark42.com/docs/configuration/frontend/
+remark42:
+ host: # Your Host URL
+ siteId: # Your Site ID
option:
Fix
- Algolia search returns no results.
- When the comment system is enabled, busuanzi's page_pv does not display.
- Custom sorting for sidebar archive cards is not working correctly.
Improvement
- Modified the class name of the note icon to avoid overriding the theme style by third-party icons.
4.2.2 (2022/05/19)
4.2.2 (2022/05/19)
1 | fix: Fixed a bug where the comment count for the Valine plugin on the homepage only showed for the first article. |
4.2.1 (2022/05/11)
4.2.0 (2022/05/02)
4.2.0 (2022/05/02)
Breaking Change
Adapted waline to V2
1
2
3
4CDN:
- waline:
+ waline_js:
+ waline_css:Changed visitor in waline to pageview
1
2
3waline:
- visitor: false
+ pageview: falseAdded the ability to configure CDN for local files and separate configuration for theme files and third-party files
1
2
3
4
5
6
7
8
9
10CDN:
+ # The CDN provider of internal scripts
+ # option: local/jsdelivr
+ # Dev version cannot choose jsdelivr
+ internal_provider: local
+ # The CDN provider of third party scripts
+ # option: local/jsdelivr
+ # when set it to local, you need to install hexo-butterfly-extjs
+ third_party_provider: jsdelivr
+ option:Removed CDN configuration for utterances, giscus, addtoany, and busuanzi
Feature
Added article content display and highlighting to algolia search
Increased the display area for search content
Added preload and CDN configuration for local search
1
2
3
4local_search:
enable: false
+ preload: false
+ CDN:Updated social-share CDN version
Added support for hiding sidebar on archive pages
1
2aside:
+ archives: trueAdded the ability to configure author hyperlink for post copyright module
1
2post_copyright:
+ author_href:
Fix
- Fixed bug where mathjax was not displaying correctly
- Fixed rendering issue with related recommendations when title contains HTML keywords
Improvement
- Unified the display of search titles as 'Search'
- Changed the logo for algolia search to instantsearch
- Prevented automatic search on first entry to algolia search
- Added ellipsis recognition to search content
- Adjusted spacing issues caused by share buttons
- HTML/CSS optimization
4.1.0 (2022/02/13)
4.1.0 (2022/02/13)
Breaking Change
Upgrade fontawesome to v6 #689
1
2
3CDN:
- fontawesome:
+ fontawesomeV6:
Feature
- Add rounded corners to snackbar
- Add flink tag plugin
Fix
- Fix bug where clicking outside of toc causes console error
- Fix bug where Facebook Comments cannot be used #787
- Fix translation missing for chat_btn #791
- Fix bug where local search doesn't work when content is set to false #764
- Fix bug where Mermaid chart elements have excessive height #773
- Fix bug where share buttons on article page don't take up full width on navigation page #765
Improvement
- Improve semantic toggle tag plugin
- Change toc background color in dark mode
4.0.1 (2022/01/16)
4.0.1 (2022/01/16)
Improvement: Optimized animation of the bottom right button under pjax.
Fix: Fixed a bug where the page setting aside as true would cause a JavaScript error.
Fix: Fixed a bug where the position of the bottom right button was being blocked on some pages.
Fix: Fixed a bug where compressing HTML code would cause an error on the friend link page.
Fix: Fixed a bug where sliding the side menu on Safari would collapse it.
4.0.0 (2022/01/15)
4.0.0 (2022/01/15)
Breaking Change
Simplified configuration for comments.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29disqusjs:
- apikey:
- api:
- nocomment: # display when a blog post or an article has no comment attached
- admin:
- adminLabel:
+ option:
gitalk:
- language: en # en, zh-CN, zh-TW, es-ES, fr, ru
- perPage: 10 # Pagination size, with maximum 100.
- distractionFreeMode: false # Facebook-like distraction free mode.
- pagerDirection: last # Comment sorting direction, available values are last and first.
- createIssueManually: false # Gitalk will create a corresponding github issue for your every single page automatically
valine:
- pageSize: 10 # comment list page size
- lang: en # i18n: zh-CN/zh-TW/en/ja
- placeholder: Please leave your footprints # valine comment input placeholder (like: Please leave your footprints)
- guest_info: nick,mail,link # valine comment header info (nick/mail/link)
- recordIP: false # Record reviewer IP
- bg: # valine background
- emojiCDN: # emoji CDN
- enableQQ: false # enable the Nickname box to automatically get QQ Nickname and QQ Avatar
- requiredFields: nick,mail # required fields (nick/mail)
waline:
- avatar: monsterid # gravatar style https://zh-tw.gravatar.com/site/implement/images/#default-image
- avatarCDN: # Gravatar CDN baseURLPage supports table of contents (TOC) #636
1
2
3
4toc:
- enable: true
+ post: true
+ page: falseDelete the "hide_sidebar_menu_child" configuration and directly configure it in the menu #640
1
2-# Hide the child menu items in mobile sidebar
-hide_sidebar_menu_child: falseCompletely remove jQuery
1
2CDN:
- jquery: https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.jsRemove Tencent Analytics
1
2
3-# Tencent Analytics ID
-# https://mta.qq.com
-tencent_analytics:photofigcaption and fancybox prioritize displaying the "title" attribute of the image, followed by the "alt" attribute #683
Support new comment name format, the theme will handle the case sensitivity, and the old format will still be compatible
Remove Botian API, note the change in order
1
2
3# source: 1 Call a sentence from Hitokoto (Simplified Chinese) https://hitokoto.cn/
# source: 2 Call a sentence (Simplified Chinese) http://yijuzhan.com/
# source: 3 Call today's poem (Simplified Chinese) https://www.jinrishici.com/Remove the font-size of HTML and use the default size of the browser
Feature
Update fancybox to version 4
1
2
3
4
5CDN:
- fancybox_css: https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.css
- fancybox: https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.js
+ fancybox_css_v4:
+ fancybox_v4:Customize the order of the bottom-right buttons #680
1
2
3
4+rightside_item_order:
+ enable: false
+ hide: # readmode,translate,darkmode,hideAside
+ show: # toc,chat,commentDisplay the website data, show the quantity as 0 when the tags and categories are 0, instead of hiding it
Set a height limit for code blocks, the expand button will not disappear after expanding, and can be clicked to collapse again #637
Selectively disable lightbox for images #636
Add lightbox to Twikoo comments with images
Upgrade Facebook comment JS to version 11
Set TOC simple_style to display for individual articles #631
Add a black overlay to the top image of pages #671
Update UI for homepage pagination
Change the theme CSS from using "rem" to "em" or "px"
Remove the font adjustment button in the bottom-right corner
1
2-# Change font size
-change_font_size: falseAdd a new tag plugin, timeline #644
Remove CDN from the configuration file, default CDN will no longer be displayed in config
Replace Justified Gallery with flickr-justified-gallery
1
2
3
4
5CDN:
- justifiedGallery_js: https://cdn.jsdelivr.net/npm/justifiedGallery/dist/js/jquery.justifiedGallery.min.js
- justifiedGallery_css: https://cdn.jsdelivr.net/npm/justifiedGallery/dist/css/justifiedGallery.min.css
+ flickr_justified_gallery_js:
+ flickr_justified_gallery_css:After switching to dark mode, mermaid will also switch to the dark theme
1
2
3
4
5
6
7mermaid:
enable: true
# built-in themes: default/forest/dark/neutral
- theme: default
+ theme:
+ light: default
+ dark: darkMermaid displays correctly after compressing HTML code
Mermaid can be used in hidden attribute tag plugins
Local search can handle JSON #684
Fine-tune the UI of the bottom-right buttons
Change the display effect of the list after beautifying the article #693 #686
Upgrade Algolia to v4
1
2
3
4
5CDN:
- algolia_search: https://cdn.jsdelivr.net/npm/instantsearch.js@2.10.5/dist/instantsearch.min.js
- algolia_search_css: https://cdn.jsdelivr.net/npm/instantsearch.js@2.10.5/dist/instantsearch.min.css
+ algolia_search_v4:
+ instantsearch_v4:Add loading display for local search database loading and searching
Anchor can be opened on any page, not just post pages
Clicking on the article title will jump to the beginning of the article for reading #653
TOC can be set to expand all #709
1
2toc:
+ expand: falseAdd a new comment system, Giscus
1
2
3
4
5
6
7
8
9
10
11
12
13+# Giscus
+# https://giscus.app/
+giscus:
+ repo:
+ repo_id:
+ category_id:
+ theme:
+ light: light
+ dark: dark
+ option:
CDN:
+ giscus:Fetch URL for the friend link list
Adjust spacing for TOC, add vertical line to identify direct child elements as closed #723
Configurable scrollbar color
1
2theme_color:
+ scrollbar_color: "#49b1f5"Beautify Firefox browser scrollbar
Add blueimp_md5 configuration to CDN
1
2CDN:
+ blueimp_md5:
Fix
- Fix the bug where the thumbnail image of fancybox is displayed with lazyload enabled
- Fix the bug where the UI is offset due to font size being too large or too small
- Fix the bug where self-built page images do not have blur effect
- Fix the bug where the UI of the navigation bar may become disordered when the window size changes
- Fix the bug where Twikoo comments under pjax may retrieve comments from the previous post #678
- Fix the bug where rightside blocks content and prevents it from being clicked
- Fix the bug where mermaid fails to load on certain pages (when there is an element with id "mermaid")
- Fix the bug where the search box does not automatically focus
- Fix the bug where an error occurs when comments are not configured for use
- Fix the bug where TOC is displayed off-screen on small devices
- Fix the bug where the reward popup is triggered around the reward button
- Fix the bug where the recent comments time in Waline only shows "just now" (when running with Docker) #730
- Fix the bug where utterances displays incorrectly when issue_term is set to url and og:title
- Fix the bug where the latest comments module still shows when the comment configuration is set to Livere and Facebook Comments
Improvement
- Optimize the subtitle code, when source is set to false and sub is not configured, it will read the subtitle from the Hexo configuration file without using escape characters
- Prevent iOS from zooming in when clicking on the search box
- Remove the limitation of only clicking the button to expand the sidebar menu #640
- Modify the title size on article pages when there is no top image
- Optimize the UI of the 404 page
- Set transparent image as the default placeholder for lazyload
- Optimize CSS
- Optimize lazyload blur effect appearance
- Move the exit button for reading mode to the bottom-right corner on mobile devices
- Fine-tune UI
- Prevent some browsers from zooming in when clicking the bottom-left button
- Add title display when hovering over the content of the latest comments
- Remove hover effect on buttons
3.8.4 (2021/09/18)
3.8.4 (2021/09/18)
Fix
- Fixed a bug that caused the inlineImg tag to display incorrectly after opening photofigcaption. (Issue #667)
- Fixed a bug where local search would not work if the search plugin was configured to not search article content. (Issue #666)
- Fixed a bug that could cause incorrect links to related articles. (Issue #549)
Improvement
- Adjusted the scrollbar color for code blocks. (Issue #651)
- When an image does not have a figcaption, the figcaption code will not be added.
3.8.3 (2021/07/30)
3.8.2 (2021/07/20)
3.8.1 (2021/07/10)
3.8.0 (2021/07/04)
3.8.0 (2021/07/04)
Breaking Change
The title of archives is now obtained from the menu configuration.
Removed the option to choose the comment service for the latest comments. It now defaults to the first comment service in the configuration.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17newest_comments:
enable: false
sort_order: # Don't modify the setting unless you know how it works
limit: 6
storage: 10 # unit: mins, save data to localStorage
avatar: true
- # You can only choose one, or neither
- valine: false
- github_issues:
- enable: false
- repo:
- disqus:
- enable: false
- forum:
- api_key:
- twikoo: false
- waline: falseChanged the way widgets are written and added the ability to add non-sticky area widgets.
Feature
Modified the icon for the latest comments.
Adapted waline colors to match the theme color.
Added waline avatarCDN configuration (also updates the latest comments).
1
2
3waline:
...
+ avatarCDN: # Gravatar CDN baseURLUpgraded facebook comment js to v10.
Fix
- Fixed the bug where the avatar for the friend links and aside were not displayed properly under lazyload blur.
- Fixed the bug where some code blocks were still expanded after setting highlight_shrink to true (#602).
- Fixed the bug where mathjax caused the list to lose its style (#586).
- Fixed the bug where mathjax on the article page caused overlapping display due to small font size (#587).
- Fixed the bug where the footer did not align to the bottom when the content was too short.
Improvement
- UI optimization.
- Adjusted waline font size and avatar effects.
- Optimized pjax.
- Reduced lag by setting background-attachment to scroll for the homepage on Apple devices.
- The 404 page no longer displays the right side.
3.7.8 (2021/06/05)
3.7.6 (2021/05/09)
3.7.5 (2021/05/05)
3.7.5 (2021/05/05)
Breaking Change
Optimization of site_verification, manual configuration required
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21-# Google Webmaster tools verification setting
-# See: https://www.google.com/webmasters/
-google_site_verification:
-# Bing Webmaster tools verification setting
-# See: https://www.bing.com/webmaster/
-bing_site_verification:
-# Baidu Webmaster tools verification setting
-# See: https://ziyuan.baidu.com/site/
-baidu_site_verification:
-# 360 Webmaster tools verification setting
-# see http://zhanzhang.so.com/
-qihu_site_verification:
-# Yandex Webmaster tools verification setting
-# see https://webmaster.yandex.com/
-yandex_site_verification:
+site_verification:Optimization of lazyload (added Gaussian blur transition effect, expanded lazyload configuration range, applied placeholder image to the entire site)
1
2
3
4
5
6lazyload:
enable: false
- post: /img/loading.gif
+ field: site # site/post
+ placeholder: /img/loading.gif
+ blur: false
Feature
- Added tags plugin - label
Fix
- Fixed bug where after opening an anchor, the article page would redirect to the homepage with the hash of the last title of the article added to the homepage URL
- Fixed bug where after opening an anchor, navigating to the previous/next page in the browser would result in a 404 error (the URL hash of the article page became undefined under pjax)
- Fixed bug where lazyload would report undefined error close #532
Improvement
- Optimization of 404 page under pjax
- Optimization of button tags plugin
3.7.1 (2021/03/30)
3.7.0 (2021/03/18)
3.7.0 (2021/03/18)
Breaking Change
Changed the syntax for subdirectories to match that of parent directories.
Removed Artitalk (If needed, please install hexo-butterfly-artitalk instead)
1
2
3
4
5
6
7
8
9-# Artitalk
-# see https://artitalk.js.org/
-artitalk:
- appId:
- appKey:
- option:
CDN:
- artitalk: https://cdn.jsdelivr.net/npm/artitalkUpdated the JavaScript and CSS CDN for katex_copytex.
1
2
3
4
5-katex_copytex: https://cdn.jsdelivr.net/npm/katex-copytex@latest/dist/katex-copytex.min.js
-katex_copytex_css: https://cdn.jsdelivr.net/npm/katex-copytex@latest/dist/katex-copytex.min.css
+katex_copytex: https://cdn.jsdelivr.net/npm/katex@latest/dist/contrib/copy-tex.min.js
+katex_copytex_css: https://cdn.jsdelivr.net/npm/katex@latest/dist/contrib/copy-tex.css
Feature
Added the ability to set a code height limit and display an expand button.
1
+highlight_height_limit: false # unit: px
prismjs can now be configured with code_word_wrap.
Added the kbd style #507.
Added article view count configuration provided by waline, valine, and twikoo #502.
1
2
3
4
5
6valine:
+ visitor: false
waline:
+ visitor: false
twikoo:
+ visitor: falseAdded HexoPlusPlus_Talk (requires installation of hexo-butterfly-hpptalk).
Added the inlineImg plugin for tags.
Added option configuration for gitalk.
1
2
3gitalk:
createIssueManually: false # Gitalk will create a corresponding github issue for your every single page automatically
+ option:
Fix
- Fixed the bug where prismjs was auto-wrapping on iOS Safari.
- Fixed the bug where the default code size was not changing with font size changes.
- Fixed the bug where unrecognized languages in prismjs were displaying "null" instead of code.
- Fixed the issue where running with no configuration would report "null" at runtime.
Improvement
- Home page tabs will now scroll to the article section #519.
- Optimized CSS and simplified custom code color CSS configuration.
- Made the search hover effect consistent with other directories.
- Adapted Baidu statistics for pjax #516.
- When both the article page cover and default_img are not configured, it will read the default_top_img parameter.
- Changed one API to use HTTPS.
- Optimized pug code.
3.6.2 (2021/02/03)
3.6.1 (2021/02/01)
3.6.0 (2021/01/30)
3.6.0 (2021/01/30)
Feature
Added comment count display on the homepage.
1
2
3
4comments:
...
count: false # Display comment count in post's top_img
+ card_post_count: false # Display comment count in Home PageUpdates to the latest comments.
<a>
tags will display[link]
.<img>
tags will display[image]
.<pre><code>
tags will display[code]
.- The URL obtained from github-issues will now link to the corresponding article instead of the issues page.
- Added datetime attribute to the time element.
- When obtaining avatars from Waline, it will first check if the avatar attribute for QQ is available in the Waline database.
- Changed the display time for some comments to the update time.
Changed the "View More" button in the aside section to an icon displayed in the top right corner.
Added configuration for the cache time of the latest comments.
1
2
3
4
5newest_comments:
enable: false
sort_order: # Don't modify the setting unless you know how it works
limit: 6
+ storage: 10 # unit: mins, save data to localStorageAdded post_pagination configuration (can be disabled/configured for pagination logic).
1
2
3
4
5
6+# post_pagination (pagination)
+# value: 1 || 2 || false
+# 1: The 'next post' will link to old post
+# 2: The 'next post' will link to new post
+# false: disable pagination
+post_pagination: 1Changed the copyright in the top right corner of the article to a copyright icon.
Added configuration to disable all top_img banners.
1
2+# Disable all banner image
+disable_top_img: falseAdded post_edit configuration.
1
2
3
4
5
6
7+# Post edit
+# Easily browse and edit blog source code online.
+post_edit:
+ enable: false
+ # url: https://github.com/user-name/repo-name/edit/branch-name/subdirectory-name/
+ # For example: https://github.com/jerryc127/butterfly.js.org/edit/main/source/
+ url:
Fix
- Fixed a bug where the icon text in the sliding submenu on the article page was not displayed (#481).
- Fixed a bug where page elements would appear blurry and then clear when entering the page on Chrome (#479).
- Fixed a bug where the background color of code blocks in read mode was not displayed correctly in dark mode.
- Fixed a bug where the donation button would have abnormal hover effects due to excessive text (#473).
- Fixed a bug where inline elements (emoticons/images) in comments would become block elements (line breaks).
- Fixed a bug where the highlight in the toc would be on the previous element when clicking on the toc.
- Fixed a bug where the donation image link would be incorrect in subdirectories.
- Fixed a bug where clicking to close the random feature would not work.
- Fixed a bug where the menu would not be properly styled when the device was rotated horizontally.
- Fixed a bug where the 404 page would not be redirected under pjax.
- Fixed a bug where the Twikoo comment count would throw an error due to regional issues.
- Fixed a bug where background images with parentheses in the URL would not be displayed.
Improvement
- Limited the meta description to 150 characters (#480).
- Optimized and restructured the Pug code.
- Optimized the Pug conditionals.
- Added title display to the friendly links interface (when top_img is set to false).
- Upgraded the Facebook comment SDK version.
- Improved the display of the toc so that the navigation bar does not overlap the toc when scrolling up (#472).
- Changed Pangu to render on the entire site.
- Optimized the latest comments JavaScript.
- Adjusted the margin of the Readmode title.
- Fine-tuned the box-shadow for card hover effects.
- Added hover effect to the 404 page card.
- Removed some unnecessary code.
Remove
Removed Baidu push (Baidu has deprecated it) and Baidu transformation.
1
2
3
4
5-# Disable Baidu transformation on mobile devices
-disable_baidu_transformation: true
-# Baidu Push
-baidu_push: falseRemoved fragment_cache configuration (enabled by default).
1
2-# Caches the contents in a fragment, speed up the generation
-fragment_cache: true
3.5.1 (2020/12/31)
3.5.1 (2020/12/31)
Feature
- Added region configuration to Twikoo.
Fix
- Fixed a bug in Twikoo where the latest comments were not being displayed in the Guangzhou region.
- Fixed a bug in Waline where the background setting was not being applied.
- Fixed a bug in Twikoo where an error occurred when entering the post page in the Guangzhou region.
3.5.0 (2020/12/30)
3.5.0 (2020/12/30)
Feature
Added a close button for the aside personal profile widget.
1
2
3
4
5
6
7
8
9
10aside:
...
card_author:
enable: true
description:
button:
+ enable: true
icon: fab fa-github
text: Theme GitHub
link: https://github.com/jerryc127/hexo-theme-butterflyAdded Cloudflare Analytics.
1
2
3+# Cloudflare Analytics
+# https://www.cloudflare.com/zh-tw/web-analytics/
+cloudflare_analytics:Added Microsoft Clarity.
1
2
3+# Microsoft Clarity
+# https://clarity.microsoft.com/
+microsoft_clarity:Improved readmode.
Added custom widgets for the aside section.
Added sorting for aside widgets (only applicable to page and sticky).
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16aside:
...
card_recent_post:
+ sort_order: # Don't modify the setting unless you know how it works
card_categories:
+ sort_order: # Don't modify the setting unless you know how it works
card_tags:
+ sort_order: # Don't modify the setting unless you know how it works
card_archives:
+ sort_order: # Don't modify the setting unless you know how it works
card_webinfo:
+ sort_order: # Don't modify the setting unless you know how it works
newest_comments:
enable: true
+ sort_order: # Don't modify the setting unless you know how it worksAdded option configuration for twikoo.
1
2
3
4
5
6# Twikoo
# https://github.com/imaegoo/twikoo
-twikoo:
+twikoo:
+ envId:
+ option:Added Waline comments.
1
2
3
4
5
6
7
8+# waline - A simple comment system with backend support fork from Valine
+# https://waline.js.org/
+waline:
+ serverURL: # Waline server address url
+ avatar: monsterid # gravatar style https://zh-tw.gravatar.com/site/implement/images/#default-image
+ emojiCDN: # emoji CDN
+ bg: /img/comment_bg.png # waline background
+ option:Added display of Waline comment count.
Added latest comments module for Waline.
1
2
3
4newest_comments:
enable: true
...
+ waline: false
Improvement
Added anchor tags to the latest comment URLs.
Optimized the HTML structure.
Replaced LeanCloud with Valine for the "newest_comments" feature, removed its configuration, and updated it to read Valine's configuration.
1
2
3
4
5
6
7
8
9
10# Aside widget - Newest Comments
newest_comments:
...
- leancloud:
- enable: false
- appId: # leancloud application app id
- appKey: # leancloud application app key
- serverURL: # This configuration is suitable for domestic custom domain name users, overseas version will be automatically detected (no need to manually fill in)
- default_avatar: # mp/identicon/monsterid/wavatar/retro/robohash/blank
+ valine: false
3.4.2 (2020/12/27)
3.4.1 (2020/12/15)
3.4.0 (2020/12/13)
3.4.0 (2020/12/13)
Breaking Change
- Removed jQuery
Feature
Configurable option to add CSS prefixes
1
2+# Add the vendor prefixes to ensure compatibility
+css_prefix: trueAdded random configuration for click text effect
1
2
3
4
5
6
7
8
9ClickShowText:
enable: false
text:
- I
- LOVEeeeeeeeeeeeee
- YOU
fontSize: 15px
+ random: true
mobile: falseAdded font adjustment button in the bottom right corner
1
2+# Change font size
+change_font_size: trueAdded latest comments from Twikoo
1
2
3
4newest_comments:
enable: true
....
+ twikoo: trueAdded display of Twikoo comment count
Added concise mode for table of contents
1
2
3
4toc:
enable: true
number: true
+ style_simple: false
Fix
- Fixed a bug where links would not work when using the justifiedGallery CDN (relative links) in subdirectories.
- Fixed an issue where the bottom-right button would not display correctly when there was no scrollbar.
- Fixed a bug where the pangu configuration for posts would still take effect across the entire website.
- Fixed a positioning issue with the table of contents (toc) when resizing.
Improvement
- Added lazyload to the latest comment avatars.
- Optimized the display of the latest comments, showing "No comments" when there are none.
- Changed the method of obtaining toc clicks to use document.getElementById to prevent issues with certain characters causing navigation problems.
- If supported by the browser, scroll will now use the native scrolling method.
- Improved search functionality.
- Optimized HTML formatting.
- When there is no scrollbar, the rightside will now be displayed directly.
- Slightly adjusted the margin of the toc on mobile devices.
- Added asynchronous loading for fontawesome and Google fonts.
- Reduced the brightness of ads in night mode.
- When setting aside mobile to false, toc will still be displayed.
Remove
- Removed ICP configuration. If needed, please use the custom_text configuration.
- Removed unnecessary language files.
3.3.0 (2020/10/28)
3.3.0 (2020/10/28)
Breaking Change
- Only supports hexo 5.0.0 and above versions.
- No longer supports the butterfly.yml syntax.
Feature
Added option settings for Valine:
1
2valine:
+ option:Changed toc to display as aside and removed sidebar:
Modified toc UI for mobile.
Removed toc auto_open configuration:
1
2
3
4toc:
enable: true
number: true
- auto_open: true # auto open the sidebarOptimized the effect and timing of the toc on mobile.
Added the ability to store aside state in localStorage.
Centered article titles.
Configurable hiding/showing of aside and added button to expand or collapse aside:
1
2
3
4
5aside:
enable: true
+ hide: false
+ button: true
mobile: true # display on mobileAdded Twikoo comments:
1
+twikoo:
Improvements
- Improved display of note tags in read mode.
- Streamlined CSS and JS.
- Optimized pjax.
- Changed article page title to h1 for SEO purposes.
- Changed canonical to use the function provided by Hexo.
- Optimized ICP SEO #393.
- Increased the width of the sidebar.
- Adjusted HTML structure, changed mobile-sidebar to sidebar/search.
- The scroll-to-comment button now only appears on the comment page.
Fixes
- Fixed a bug where mermaid wouldn't display properly after website compression.
- Fixed a bug where the content of an article wouldn't display in read mode when top_img was set to false.
- Fixed a bug where the background image of valine would move from left to right when it appeared again.
- Fixed a bug where disqusjs wouldn't fallback when the API wasn't set.
Removals
- Removed unnecessary search configurations.
- Removed Douban configuration. If needed, please use hexo-butterfly-douban.
- Removed redundant CSS and Pug.
3.2.0 (2020/09/28)
3.2.0 (2020/09/28)
Breaking Change
Renamed
canvas_ribbon_piao
tocanvas_fluttering_ribbon
:1
2
3
4-canvas_ribbon_piao:
+canvas_fluttering_ribbon:
enable: false
mobile: falseRemoved special effect JS and switched to CDN import.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21CDN:
# background effect
- canvas_ribbon: /js/third-party/canvas-ribbon.js
- canvas_ribbon_piao: /js/third-party/piao.js
- canvas_nest: /js/third-party/canvas-nest.js
+ canvas_ribbon: https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/canvas-ribbon.min.js
+ canvas_fluttering_ribbon: https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/canvas-fluttering-ribbon.min.js
+ canvas_nest: https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/canvas-nest.min.js
# effect
- activate_power_mode: /js/third-party/activate-power-mode.js
- fireworks: /js/third-party/fireworks.js
- click_heart: /js/third-party/click_heart.js
- ClickShowText: /js/third-party/ClickShowText.js
+ activate_power_mode: https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/activate-power-mode.min.js
+ fireworks: https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/fireworks.min.js
+ click_heart: https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/click-heart.min.js
+ ClickShowText: https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/click-show-text.min.js
Feature
Added the ability to configure whether or not to display the content/description of homepage articles.
1
2
3
4
5
6
7
8# Display the article introduction on homepage
# 1: description
# 2: both (if the description exists, it will show description, or show the auto_excerpt)
# 3: auto_excerpt (default)
+# false: do not show the article introduction
index_post_content:
method: 3
length: 500 # if you set method to 2 or 3, the length need to configAdded the ability to configure whether to display the date or relative time for homepage and post pages.
1
2
3
4
5
6post_meta:
page: # Home Page
+ date_format: relative # date/relative to display the date or relative time
post:
+ date_format: relative # date/relative to display the date or relative timeAdded the ability to configure the top image (leave it empty for default color, specify a color in HEX/RGB/color word/gradient, or provide an image link, or set it to false to hide the top image).
Added the ability to configure the footer background (leave it empty for default color, specify a color in HEX/RGB/color word/gradient, provide an image link, or set it to true to use the same top image).
Added the ability to configure the website background (specify a color in HEX/RGB/color word/gradient, or provide an image link).
Added the ability to configure top images for individual tags using the tag_per_img configuration.
1
+tag_per_img:
Added the ability to configure top images for individual categories using the category_per_img configuration.
1
+category_per_img:
Optimized the note tag (customizable icon and style override).
In night mode, when the background color/top image/footer background is set to a color, it no longer forces black but instead applies a dimming overlay.
Added mobile settings for certain effects (activate_power_mode/fireworks/click_heart/ClickShowText).
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17activate_power_mode:
...
+ mobile: false
fireworks:
...
+ mobile: true
-click_heart: false
+click_heart:
+ enable: false
+ mobile: false
ClickShowText:
enable: false
...
+ mobile: falseAdded the Artitalk comment plugin.
1
2
3
4
5
6
7
8
9+# Artitalk
+# see https://artitalk.js.org/
+artitalk:
+ appId:
+ appKey:
+ option:
CDN:
+ artitalk: https://cdn.jsdelivr.net/npm/artitalkAdded the ability to disable webpage entrance animation.
1
2+# Enter transitions (enable webpage entrance animation)
+enter_transitions: true
Improvements
- The preloader will now load on every page under pjax.
- Modified the logic to prevent errors caused by users setting up two lightboxes (only one is allowed).
- Improved time display (e.g. just now, a few minutes ago, a few hours ago, a few days ago, a few months ago).
- Removed unnecessary language files and CSS.
- Open_Graph has been replaced with the built-in hexo generator.
- When hidden sections are not configured, the settings button in the bottom left corner will disappear.
- Added slide effect to expand/collapse categories in the aside section.
- Dark mode font color has been darkened.
- Optimized navigation entry to fix bugs where some users couldn't see the navigation in local testing.
- Updated the latest comments to use REST API calls instead of JS SDK calls for Leancloud. The application no longer needs to be the same as Valine.
- Added error output for the latest comments.
- When tags are set to display in color, the font size will now vary based on the number of articles with that tag.
- Adjusted the font size of the tags and categories pages when the width is less than 768.
- Adjusted the categorization of theme files.
- Valine background image will now be hidden when clicking on the comment box.
Fixes
- Fixed an issue where pjax would not work when the description was not set in hexo's _config file.
- Fixed a bug where the text effect on mouse click would cause a scrollbar when the text was too long.
- Fixed a bug where local search article links were not redirecting properly.
Remove
Removed anime js and integrated it into the js file of fireworks.
1
2CDN:
- anime: https://cdn.jsdelivr.net/npm/animejs@latest/anime.min.jsDeleted unnecessary language files.
chore
- update hexo-renderer-stylus to 2.0.1
3.1.1 (2020/09/06)
3.1.0 (2020/08/31)
3.1.0 (2020/08/31)
Breaking Change
- Only supports hexo versions 4.2.0 and above.
- butterfly.yml now uses deepMerge to merge with the _config file instead of replacing it.
Feature
Adapted prismjs for hexo 5.0.0, including code themes and various features.
Adapted prismjs caption for hexo 5.1.0.
Mobile sidebar submenus can now be hidden.
1
2+# Hide the child menu items in mobile sidebar
+hide_sidebar_menu_child: falseAdded smooth scrolling effect when clicking on toc when the width is less than 1024.
Configurable font size and changed code-font to code-font-family in the configuration.
1
2
3
4
5
6font:
+ global-font-size:
+ code-font-size:
font-family:
- code-font:
+ code-font-family:Changed some CSS from 'px' to 'em' to adapt to changes in font size values.
Added exclude configuration for pjax.
1
2
3
4-pjax: false
+pjax:
+ enable: false
+ exclude:Added cnzz_analytics.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18# Analysis
# --------------------------------------
# Baidu Analytics
# https://tongji.baidu.com/web/welcome/login
baidu_analytics:
# Google Analytics
# https://analytics.google.com/analytics/web/
google_analytics:
# Tencent Analytics
# https://mta.qq.com/
tencent_analytics: #500727214
+# CNZZ Analytics
+# https://www.umeng.com/
+cnzz_analytics:Changed Tencent Analytics to Tencent Mobile Analytics and adapted it for pjax.
Added position sticky to aside.
Changed the way addtoany items are written.
1
2
3
4
5
6
7
8
9
10
11addtoany:
enable: false
- item:
- - facebook
- - twitter
- - wechat
- - sina_weibo
- - facebook_messenger
- - email
- - copy_link
+ item: facebook,twitter,wechat,sina_weibo,facebook_messenger,email,copy_linkAdded display of last update time and post count configuration to aside.
1
2
3
4
5
6aside:
- card_webinfo: true
+ card_webinfo:
+ enable: true
+ post_count: true
+ last_push_date: trueAdded newest comments widget to aside.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17+newest_comments:
+ enable: false
+ limit: 6
+ avatar: true
+ leancloud:
+ enable: false
++ appId: # leancloud application app id
+ appKey: # leancloud application app key
+ serverURL: # This configuration is suitable for domestic custom domain name users, overseas version will be automatically detected (no need to manually fill in)
+ default_avatar: mp # mp/identicon/monsterid/wavatar/retro/robohash/blank
+ github_issues:
+ enable: false
+ repo:
+ disqus:
+ enable: false
+ forum:
+ api_key:
Improvements
- Changed the layout of "archives" and "card-post" to use flexbox.
- Added a scroll offset of 60px when scrolling up to avoid the navigation bar blocking the content.
- Switched from using cookies to store data to using localStorage.
- Made it possible to configure individual theme colors in the settings, instead of having to enable all of them.
- Adjusted the display of "webinfo" when the width is small.
- Adjusted the padding of content in the "aside" section.
- When using Pjax, the page will now scroll to the last viewed position when refreshed.
- Fixed a bug where mathjax content was overflowing the screen.
- Made some CSS adjustments and HTML optimizations.
- Removed the theme-color configuration in the PWA, now using the default generated meta theme-color.
- Added "view more" links to "card-categories" and "card-archives".
- Changed the code names to be all uppercase.
Fix
- Fixed a bug where the configuration of "canvas_nest" was not being applied.
- Fixed a bug where the "rightsize-bottom" configuration was not working.
- Fixed a bug where code blocks had a background in dark mode when rendering was disabled.
- Fixed a bug where code blocks in the "tags-toggle" plugin were displayed as a single line.
- Fixed a bug where code blocks in the "tags-toggle" plugin were compressed to a single line when rendering was disabled.
- Fixed a bug in the "modern" style where the "note" plugin did not have a background color and the text was not clear in dark mode when tags were not used.
- Fixed a bug where the corners of article covers on the homepage had small white edges in dark mode.
- Fixed a bug in the "note" plugin where code blocks were displaying a background color.
- Fixed a bug where the scroll percentage of the table of contents was inaccurate.
- Fixed a bug where an error was thrown when comments were not configured.
- Fixed a bug where related article covers were not displayed in subdirectories of the website.
Remove
- Removed the font zoom in/out buttons.
- Removed the default code theme.
3.0.1 (2020/08/11)
3.0.1 (2020/08/11)
Fix
- Fixed a bug where the navigation sidebar did not have the entrance effect.
- Fixed a bug in versions below Hexo 5.0.0 where the table of contents (TOC) did not scroll when encountering Chinese characters.
- Fixed bugs related to using Open Graph meta and Livere simultaneously under pjax. The source page displayed in the Livere comment backend was different from the actual page.
3.0.0 (2020/08/05)
3.0.0-RC2 (2020/08/01)
3.0.0-RC2 (2020/08/01)
Breaking Change
Added support for dual comment system configuration/comment configuration organization/comment lazyload.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37+comments:
+ # Up to two comments system, the first will be shown as default
+ # Choose: Disqus/Disqusjs/Livere/Gitalk/Valine/Utterances/Facebook Comments
+ use:
+ # - Valine
+ # - Disqus
+ text: true # Display the comment name next to the button
+ # lazyload: The comment system will be load when comment element enters the browser's viewport.
+ # If you set it to false, the comment count will be invalid
+ lazyload: false
+ count: false # Display comment count in top_img
disqus:
- enable: false
- count: false # dispaly comment count in top_img
disqusjs:
- enable: false
- count: false # dispaly comment count in top_img
livere:
- enable: false
gitalk:
- enable: false
- count: false # dispaly comment count in top_img
valine:
- enable: false # if you want use valine,please set this value is true
- count: false # dispaly comment count in top_img
utterances:
- enable: false
facebook_comments:
- enable: false
- count: falseOrganized the footer configuration and modified some language. #279
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20-since: 2020
-footer_custom_text:
-footer_copyright: true
-ICP:
- enable: false
- url:
- text:
- icon: /img/icp.png
+footer:
+ owner:
+ enable: true
+ since: 2020
+ custom_text:
+ copyright: true # Copyright of theme and framework
+ ICP: # Chinese ICP License
+ enable: false
+ url:
+ text:
+ icon: /img/icp.pngRemoved the 'Add Bookmark' feature and added a configurable button.
1
2
3
4
5
6
7
8aside:
card_author:
enable: true
description:
+ button:
+ icon: fab fa-github
+ text: Follow Me
+ link: https://github.com/xxxxxxAdded a character limit configuration for the copied copyright, only adding copyright information if it exceeds a certain number of characters.
1
2
3
4
5
6copy:
enable: true
- copyright: false
+ copyright:
+ enable: false
+ limit_count: 50Added the ability to sort aside recent posts by publish date or update date.
1
2
3
4
5aside:
card_recent_post:
enable: true
limit: 5 # if set 0 will show all
+ sort: date # date or updatedUpdated the CDN for typed.js/meting.
1
2
3
4
5-typed: https://cdn.jsdelivr.net/npm/typed.js
-meting_js: https://cdn.jsdelivr.net/npm/meting@1.2.0/dist/Meting.min.js
+typed: https://cdn.jsdelivr.net/npm/typed.js/lib/typed.min.js
+meting_js: https://cdn.jsdelivr.net/gh/metowolf/MetingJS@1.2/dist/Meting.min.js
Feature
Added an outdated notice for posts.
1
2
3
4
5
6
7
8+# Displays outdated notice for a post
+noticeOutdate:
+ enable: false
+ style: flat # style: simple/flat
+ limit_day: 500 # When will it be shown
+ position: top # position: top/bottom
+ message_prev: It has been
+ message_next: days since the last update, the content of the article may be outdated.Added a new code block color scheme for Mac light.
Added the ability to configure copyright for individual posts.
Adjusted the display of category names in card-category to fit in one line.
Improved the traditional and simplified Chinese conversion, including the conversion of placeholders.
Introduced CSS variables to reduce CSS file size.
Added Pjax [Beta] support.
1
2
3
4+# Pjax [Beta]
+# It may contain bugs and unstable, give feedback when you find the bugs.
+# https://github.com/MoOx/pjax
+pjax: falseAdded support for the third-party chat service Crisp.
1
2
3
4
5+# crisp
+# https://crisp.chat/en/
+crisp:
+ enable: false
+ website_id:Added auto ad configuration for Google AdSense to reduce unnecessary JavaScript loading.
1
2
3
4
5
6google_adsense:
enable: false
+ auto_ads: true
js: https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
client:
enable_page_level_ads: trueWhen post_asset_folder is set to true, the top_img and cover of a post can directly reference images in the same-named folder by just specifying the image name and extension. #270
Added Yandex Webmaster tools verification configuration.
1
2
3+# Yandex Webmaster tools verification setting
+# see https://webmaster.yandex.com/
+yandex_site_verification:Added the ability to configure whether post-meta displays text.
1
2
3
4
5
6
7
8
9
10
11post_meta:
page: # Home Page
date_type: created # created or updated or both
categories: true # true or false
tags: false # true or false
+ label: true # true or false
post:
date_type: both # created or updated or both
categories: true # true or false
tags: true # true or false
+ label: true # true or falseAdjusted the display of post-meta on mobile devices and added support for displaying categories.
Changed the scrollbar color of code blocks to match the code theme.
Added lazyload for avatars and reward images.
Improved the loading speed of highlight-tool.
Added the ability to switch themes for disqus/disqusjs/facebook comments with the night mode button.
Upgraded mathjax to version 3.
pangu.js now only renders the body-wrap area.
Limited the font size increase and decrease to a range of 10px to 20px.
Updated the Google Analytics code (gtag).
Removed blueimp_md5 js.
1
-blueimp_md5: https://cdn.jsdelivr.net/npm/blueimp-md5/js/md5.min.js
Made minor adjustments to the night mode and reading mode.
Fix
- Fixed a bug where the button in the bottom right corner was being blocked by the button tag plugin.
- Fixed a bug where opening photofigcaption caused interface distortion in the gallery.
- Fixed a bug where the tabs plugin conflicted with the aplayer plugin.
- Adjusted the spacing of the aplayer.
- Fixed a bug where the highlight_shrink and toc in the article's front-matter caused JavaScript errors when empty.
- Fixed a bug where using the BUTTON tag nested in other tags resulted in different styles due to the generation of extra br tags.
- Fixed a bug where mobile-sidebar couldn't scroll on some devices.
- Fixed a bug where text overflowed in certain elements on the article page.
- Adjusted the layout when card-category has a shrink button.
- Fixed a bug where loading files failed when configuring PWA parameters and the website is in a subdirectory.
- Fixed a bug where the hexo douban plugin showed null images when clicking on the previous/next page.
- Adapted to hexo 5.0.0 and fixed a bug where toc didn't jump when clicked.
- Adapted to hexo 5.0.0 and fixed a bug where toc didn't scroll with the article.
- Fixed a bug where the requiredFields setting in Valine was ineffective when set to empty.
- Adjusted the margin of ol, ul, and li in the mobile interface.
- Fixed a bug where the width of Facebook comments was not 100% on mobile.
- Fixed a bug where share.js shared articles with the same image.
- Removed the underline of the a tag when the note tag plugin is set to modern.
- Corrected some incorrect HTML structures.
- Fixed a bug where the alt attribute of fancybox displayed as undefined.
- Fixed a bug where the ICP text in the footer with a blue background was unclear when hovered.
3.0.0-RC1 (2020/06/16)
3.0.0-RC1 (2020/06/16)
Breaking Change
Starting from version 3.0, IE browser is no longer supported.
Forced to use fontawesome v5 (this will affect some custom icons, please replace them with v5 icons).
1
2
3
4
5
6
7
8
9
10-# fontawesome icons
-# By default, fontawesome v4 icons are used
-fontawesome_v5:
- enable: false
CDN:
- # fontawesome
- 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: https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.cssChanges in _config.yml
Simplified baidu_push/instantpage/click_heart/readmode/footer_copyright/medium_zoom/fancybox configurations.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28-baidu_push:
- enable: false
-instantpage:
- enable: true
-click_heart:
- enable: false
-readmode:
- enable: true
-footer_copyright:
- enable: true
-medium_zoom:
- enable: false
-fancybox:
- enable: true
+baidu_push: false
+instantpage: true
+click_heart: false
+readmode: true
+footer_copyright: true
+medium_zoom: false
+fancybox: trueChanged runtimeshow's start_date to publish_date.
1
2
3
4runtimeshow:
enable: true
- start_date: 6/7/2018 00:00:00
+ publish_date: 6/7/2018 00:00:00Renamed laibili to LiveRe.
1
2
3
4-laibili:
+livere:
enable: false
uid:Changed hr to hr_icon, which can be used to cancel the icon.
1
2
3
4
5
6# Horizontal line
-hr:
+hr_icon:
enable: true
icon: # Unicode of the icon on fontawesome
icon-top:Changed loading_bg to error_img, and moved post-loading to lazyload.
1
2
3
4
5
6
7
8
9-lodding_bg:
+error_img:
flink: /img/friend_404.gif # Image after 404
post_page: /img/404.jpg # Image after 404
- post: /img/loading.gif # Loading animation
lazyload:
enable: true
+ post: /img/loading.gif # Loading animationPangu's field configuration can only be set to site/post.
1
2
3
4pangu:
enable: true
- field: page # page/post
+ field: site # site/postIntegrated auto_open_sidebar into toc.
1
2
3
4
5
6
7
8toc:
enable: true
number: true
+ auto_open: true # auto open the sidebar
-# auto open the sidebar in 'post'
-auto_open_sidebar:
- enable: trueRemoved enable configuration for font.
1
2
3
4
5
6
7
8# Global font
font:
- enable: false
- 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 YaHei", monospace, Helvetica Neue For Number
+ font-family:
+ code-font:Removed some configurations.
1
2
3
4
5
6
7valine:
- notify: false # valine mail notify (true/false) Deprecated in v1.4.0+
- verify: false # valine verify code (true/false) Deprecated in v1.4.0+
translate:
- # Blog URL
- cookieDomain: 'https://xxx/'Removed twitter_meta configuration.
1
2
3-# Automatically add styles to Twitter shares
-# -https://i.loli.net/2019/09/08/qm3RfvUCKbct1Wz.png
-twitter_meta: true
Feature
Table width now occupies the full width of the display.
Added system Dark Mode switch monitoring. The theme will switch immediately when the system switches to Dark Mode.
card_description now supports HTML writing.
Dark Mode and Light Mode switch button icons have been changed.
Adapted to the built-in Pullquote tag in Hexo.
Added dns-prefetch to the links for Baidu Push.
Set canonical to be generated by default and no longer provide configuration.
1
2-# Avoid duplicate URLs and SEO dispersion
-canonical: trueAdded defer to the instantpage JavaScript loading.
Added zIndex configuration to fireworks.
1
2
3fireworks:
enable: false
+ zIndex: 9999 # -1 or 9999New Tag Plugin - button.
New Tag Plugin - tabs.
Configurable justifiedGallery CDN.
1
2
3
4CDN:
+ # justifiedGallery
+ justifiedGallery_js: https://cdn.jsdelivr.net/npm/justifiedGallery/dist/js/jquery.justifiedGallery.min.js
+ justifiedGallery_css: https://cdn.jsdelivr.net/npm/justifiedGallery/dist/css/justifiedGallery.min.cssNew design for the 404 page.
aplayer js/css can now be configured in the front-matter of the post to prevent inserting code on every page.
1
2
3
4
5CDN:
+ # aplayer
+ aplayer_css: https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css
+ aplayer_js: https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.js
+ meting_js: https://cdn.jsdelivr.net/npm/meting@1.2.0/dist/Meting.min.jsAdded online chat services (chatra/tidio/daovoice/gitter) and the ability to replace the original chat button with a theme chat button.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30+# Chat Button [recommend]
+# It will create a button in the bottom right corner of website, and hide the origin button
+chat_btn: false
+# The origin chat button is displayed when scrolling up, and the button is hidden when scrolling down
+chat_hide_show: false
+# chatra
+# https://chatra.io/
+chatra:
+ enable: false
+ id:
+# tidio
+# https://www.tidio.com/
+tidio:
+ enable: false
+ public_key:
+# daovoice
+# http://daovoice.io/
+daovoice:
+ enable: false
+ app_id:
+# gitter
+# https://gitter.im/
+gitter:
+ enable: false
+ room:Configurable distance between rightside button and the bottom.
1
2+# Distance between the right bottom button and the bottom (default unit is px)
+rightside-bottom:Changed lazyload service provider.
1
2
3CDN:
- lazyload: https://cdn.jsdelivr.net/npm/lozad/dist/lozad.min.js
+ lazyload: https://cdn.jsdelivr.net/npm/vanilla-lazyload/dist/lazyload.iife.min.jsAdded expand/collapse button to card-categories.
1
2
3
4
5aside:
card_categories:
enable: true
limit: 8 # if set 0 will show all
+ expand: none # none/true/falseChanged auto_excerpt to index_post_content, and added three methods to choose from.
1
2
3
4
5
6
7
8
9
10
11
12-# Automatic excerpt
-auto_excerpt:
- enable: true
- length: 150
+# Display the article introduction on homepage
+# 1: description
+# 2: both (if the description exists, it will show description. or show the auto_excerpt)
+# 3: auto_excerpt (default)
+index_post_content:
+ method: 3
+ length: 500 # if you set method to 2 or 3, the length need to configCan individually set auto_open: false in the post to turn off the automatic opening of the sidebar.
Optimized friend links interface code, added category description, and made category name and description optional. Changed the format of the friend links yml (the old format is still valid).
Added highlight_shrink to the front-matter of the post/page (true or false).
Code box optimization
- Adjusted some code colors
- Added a code theme called "mac"
- Code box themes now support customization
Removed code highlighting in reading mode
Updated js/css versions of disqusjs, added nocomment configuration
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17disqusjs:
enable: false
shortname:
siteName:
apikey:
- api: https://disqus.skk.moe/disqus/ # No need to modify API address in most cases
+ api:
+ nocomment: # Display when a blog post or an article has no comment attached
admin:
adminLabel:
count: false # Display comment count in top_img
CDN:
- disqusjs: https://cdn.jsdelivr.net/npm/disqusjs@1.2/dist/disqus.js
- disqusjs_css: https://cdn.jsdelivr.net/npm/disqusjs@1.2/dist/disqusjs.css
+ disqusjs: https://cdn.jsdelivr.net/npm/disqusjs@1/dist/disqus.js
+ disqusjs_css: https://cdn.jsdelivr.net/npm/disqusjs@1/dist/disqusjs.cssAdded link configuration for rewards / Changed reward format (old format still works) #240
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16# Reward button
reward:
enable: true
QR_code:
- - itemlist:
- img: /img/wechat.jpg
- text: WeChat
- - itemlist:
- img: /img/alipay.jpg
- text: Alipay
+ - img: /img/wechat.jpg
+ link:
+ text: WeChat
+ - img: /img/alipay.jpg
+ link:
+ text: AlipayRemoved JS-COOKIES
1
2CDN:
- js_cookies: https://cdn.jsdelivr.net/npm/js-cookie/dist/js.cookie.min.jsAdded ability to configure whether TOC (Table of Contents) is displayed for articles, even if toc is set to false in the configuration
Fix
- Fixed alignment issues with sidebar directory collapse/expand icons
- Modified some language (zh-CN/zh-TW/en)
- Fixed bugs where clicking on card-categories and card-archives didn't navigate
- Fixed bugs where social media links generated incorrect addresses when the website was in a subdirectory
- Fixed bug where Pagination didn't occupy full width for the last article
- Fixed bug where recommended articles layout didn't display correctly on Microsoft Edge (old version)
- Fixed bug where font in black code box was not clear in reading mode #223
- Fixed bug where preconnect //fonts.googleapis.com was loaded when blog_title_font was not set to a Google font
- Fixed bug where setting copy to false prevented code copying
- Adjusted reading mode
- Fixed bugs where some compression software reported errors when compressing HTML
2.3.5(2020/05/01)
2.3.5 (2020/05/01)
Feature
Added the ability to configure the beautify feature to apply to the entire site or just the post pages (#218).
1
2
3
4
5beautify:
enable: true
+ field: post # site/post
title-prefix-icon: '\f0c1'
title-prefix-icon-color: '#F47466'Updated the lazyload JavaScript library.
1
2
3
4
5
6
7
8
9
10-lazyload:
- enable: true
+lazyload: true
CDN:
- lazyload: https://cdn.jsdelivr.net/npm/lazysizes@latest/lazysizes.min.js
+ lazyload: https://cdn.jsdelivr.net/npm/lozad/dist/lozad.min.jsAdded the ability to configure anchors for articles.
1
2
3+ # anchor
+ # when you scroll in post , the url will update according to header id.
+ anchor: false
Fix
- Fixed a bug where an error "Cannot read property 'trim' of undefined" would occur when a menu icon was not set.
- Fixed a bug where the meta description was not properly escaped when automatically generating the first 200 characters of an article.
- Fixed a bug where images were not displayed when using `` after enabling lazyload.
- Fixed a bug where only 8 tags were displayed on the tags page.
- Fixed a bug where local images were not displayed when the blog root was not '/'.
- Fixed a bug where replacing the URL hash caused the page to jump.
2.3.0(2020/04/26)
2.3.0(2020/04/26)
Breaking Change
Added Facebook Comments
1
2
3
4
5
6
7
8
9
10+# Facebook Comments Plugin
+# https://developers.facebook.com/docs/plugins/comments/
+facebook_comments:
+ enable: false
+ app_id:
+ user_id: # optional
+ pageSize: 10 # The number of comments to show
+ order_by: social # social/time/reverse_time
+ lang: en_US # Language en_US/zh_CN/zh_TW and so on
+ count: falseAdded page loading animation Preloader #193
1
2+# Loading Animation
+preloader: falseConfigurable aside card-tags to show color or not/aside subtitle is configurable, priority is given to the configured content, if not available, show page subtitle #191 / Configurable parameters added to aside widget/aside widget's Categories, Tags, post, Archives can be configured with limit/Integrate announcement configuration into aside
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38aside:
enable: true
mobile: true # Whether to show aside content on mobile pages (display width < 768px)
position: right # left or right
- card_author: true
- card_announcement: true
- card_recent_post: true
- card_categories: true
- card_tags: true
- card_archives: true
+ card_author:
+ enable: true
+ description:
+ card_announcement:
+ enable: true
+ content: This is my Blog
+ card_recent_post:
+ enable: true
+ limit: 5 # if set 0 will show all
+ card_categories:
+ enable: true
+ limit: 8 # if set 0 will show all
+ card_tags:
+ enable: true
+ limit: 40 # if set 0 will show all
+ color: false
+ card_archives:
+ enable: true
+ type: monthly # yearly or monthly
+ format: MMMM YYYY # eg: YYYY年MM月
+ order: -1 # Sort of order. 1, asc for ascending; -1, desc for descending
+ limit: 8 # if set 0 will show all
card_webinfo: true
-# Website Announcement
-announcement:
- content: Thank you for visiting this site, please bookmark ^_^Changed CDN_USE to inject, can insert code into head or bottom
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28-# CDN
-# Required for the website
-# Add js/css as needed
-CDN_USE:
- css:
- - /css/index.css
- js:
- - https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js #/js/third-party/jquery.min.js
- - /js/utils.js
- - /js/main.js
+# inject
+# Insert code before </head> and before </body>
+inject:
+ head:
+ # - <link rel="stylesheet" href="xxxxx">
+ bottom:
+ # - <script src="xxxx"></script>
# CDN
# Do not modify if not necessary
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.jsAdapted to valine version 1.4.5 and above
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18valine:
enable: false # if you want use valine,please set this value is true
appId: # leancloud application app id
appKey: # leancloud application app key
notify: false # valine mail notify (true/false) Deprecated in v1.4.0+
verify: false # valine verify code (true/false) Deprecated in v1.4.0+
pageSize: 10 # comment list page size
avatar: monsterid # gravatar style https://valine.js.org/#/avatar
lang: en # i18n: zh-CN/zh-TW/en/ja
placeholder: Please leave your footprints # valine comment input placeholder(like: Please leave your footprints )
guest_info: nick,mail,link #valine comment header info
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)
+ emojiCDN: # emoji CDN
+ enableQQ: false # enable the Nickname box to automatically get QQ Nickname and QQ Avatar
+ requiredFields: nick,mail # required fields nick/mail/link
bg: /img/comment_bg.png # valine background
count: false # dispaly comment count in top_imgRemoved support for hiding articles.
Features
- Added tag-toggle plugin for tagging.
- Adapted to hexo-generator-indexed plugin.
- Fine-tuned color schemes for Dark mode and Read mode.
- Added page keywords setting.
- Deepened highlighting of text in algolia-search.
- Adjusted layout of subdirectories to align left.
- Adjusted layout of aside and mobile sidebar web information. When one is missing, the width is still evenly divided.
- Added rotating avatar effect on sidebar menu hover.
- Automatically reads the first 200 words of an article as the meta description if no description is set.
- Added article:published_time and article:modified_time to meta.
- Changed subtitle to load after the webpage is fully loaded to prevent slow API responses from blocking webpage display.
- Removed subtitle from Kingsoft Ciba Daily Quote and added random quotes from Bo Tian API.
- Local search now supports displaying article content and highlighting keywords.
- Dark mode can be switched to Light mode in Read mode.
- Adapted interface for high resolution displays.
- Fixed display bug of note tags in Dark mode.
- Added dns_prefetch.
Fixes
- Fixed inconsistent logic in articleSort for setting article covers.
- Corrected some terms in zh-TW.
- Fixed color display issue in hide-block configuration.
- Fixed bug where only clicking on subdirectory text would navigate.
- Fixed bug where search results could not be scrolled on mobile devices.
- Fixed bug where "view more" on aside categories would navigate to tags page.
- Fixed bug where an error would occur when flink.yml content is empty.
- Fixed bug where "view more" text in aside was too light in Dark mode.
- Fixed bug where there was a separator before comment count when reading minutes and page views are disabled.
- Fixed bug where canvas_ribbon opacity would change to 1 and then back to default value.
- Fixed bug where no image would appear when default_cover is not set.
- Fixed issue where replacing the URL hash value on article pages would result in excessive browser history.
- Fixed display bug of note tags in Dark mode.
2.2.5(2020/03/28)
2.2.5(2020/03/28)
Breaking Change
Added automatic ad positions
1
2
3
4+ad:
+ index:
+ aside:
+ post:Added image Figcaption display
1
+ photofigcaption: false
Added total word count for the entire website, configurable to disable word count, reading time, and total word count
1
2
3
4
5wordcount:
enable: false
+ post_wordcount: true
+ min2read: true
+ total_wordcount: true
Feature
- Added table of contents in the header that appears when scrolling on article pages
- Added tooltip text to post meta on the entire website
- Adjusted spacing between post meta on article pages and the homepage
- Added text display when only one date is set on article pages
Fixed
- Fixed bug where class of img tag in lazyload was misplaced causing replacement error
- Fixed bug where URL of copied copyright information was undefined
- Fixed bug where "Read More" in aside was not centered
- Fixed bug where setting highlight_shrink to false caused JavaScript error
- Fixed bug where setting highlight_shrink to true did not open code block when clicked
- Fixed bug where switch button icon did not change in Dark mode
- Fixed bug where simplified and traditional Chinese conversion was not working
- Fixed bug where homepage article dates were displayed incorrectly
- Fixed bug caused by commenting out Douban settings resulting in "Cannot read property 'meta' of undefined" error
- Fixed bug where Gitalk reported "Error: Cannot read property 'repository' of undefined"
- Fixed bug where utterances comments still displayed light theme when display_mode was set to dark
- Fixed bug where setting display_mode to dark had no effect
- Added night mode and article page detection to comments, reducing unnecessary JavaScript loading
2.2.0 (2020/03/17)
2.2.0 (2020/03/17)
Breaking Change
No longer support hexo versions below 4.0.0.
Added hexo fragment_cache to speed up generation speed.
1
+ fragment_cache: true
Improved V5 icon display, no longer need to load both V4 and V5 icons.
1
2
3
4
5
6
7
8
9
10
11
12
13+ fontawesome_v5:
+ enable: false
CDN_USE:
css:
- /css/index.css
- - https://cdn.jsdelivr.net/npm/font-awesome@latest/css/font-awesome.min.css
- - https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css #fontawesomeV5_css
CDN:
+ # fontawesome
+ 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.cssRemoved cheerio dependency.
Integrated Douban configuration, added configuration for games and books pages, added top_img for pages, and added the ability to set whether to display meta to solve the issue of some browsers not displaying images.
1
2
3
4
5
6
7
8- # If you are using hexo-douban to generate movie pages, you can configure this
- movies_img: https://cdn.jsdelivr.net/gh/jerryc127/butterfly_cdn@2.1.0/top_img/movie.jpg
+ douban:
+ meta: false
+ movies_img:
+ books_img:
+ games_img:Custom content can be added to the list of friendly links.
Can set the distance between the main page title and the top.
1
2
3
4
5# Main page settings
# Default top_img is full screen, site_info is in the middle
# Use default, no need to fill in (recommended)
+index_site_info_top: # Distance between main page title and top e.g. 300px/300em/300rem/10%
index_top_img_height: # Height of main page top_img e.g. 300px/300em/300rem cannot use percentageSidebar can be hidden, and can set whether to hide on mobile pages.
1
2
3
4
5
6
7-aside_mobile: true
aside:
+ enable: true
+ mobile: true # Whether to display aside content on mobile pages (display width < 768px)
position: right # left or right
card_author: trueAdded configuration for DisqusJS and Utterances comments.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16+disqusjs:
+ enable: false # Change to true to enable
+ shortname:
+ siteName:
+ apikey:
+ api: https://disqus.skk.moe/disqus/ # No need to modify API address in general
+ admin:
+ adminLabel:
+ count: true # Display comment count on top_img
+ utterances:
+ enable: false
+ repo: jerryc127/jerryc127.github.io # Optional pathname/url/title/og:title
+ issue_term: pathname # Optional github-light/github-dark/github-dark-orange/icy-dark/dark-blue/photon-dark
+ light_theme: github-light
+ dark_theme: photon-darkHomepage subtitle can be turned off for typing effect, and can set whether the typing effect shows only once or loops.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19subtitle:
enable: true
+ # Typing effect
+ effect: true
+ # Loop or type only once
+ loop: false
# Call third-party services for source
# source: false to disable
# source: 1 to call Jinshan Ciba's daily sentence (Simplified Chinese)
# source: 2 to call Hitokoto's sentence (Simplified Chinese) #https://hitokoto.cn/
# source: 3 to call Yijuzhan's sentence (Simplified Chinese) http://yijuzhan.com/
# source: 4 to call Jinrishici's poem (Simplified Chinese) https://www.jinrishici.com/
# subtitle will display source first, then sub content
source: 2
# (If there is a comma in English ', ', please use the escape character ,)
# If typing effect is turned off, subtitle will only display the first line of sub content
sub:
- 今日事,今日畢
- Never put off till tomorrow what you can do todayAdded configuration for Gitalk and Valine comments.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29gitalk:
enable: false
client_id:
client_secret:
repo:
owner:
admin:
language: zh-CN # en , zh-CN , zh-TW
+ perPage: 10 # Pagination size, with maximum 100.
+ distractionFreeMode: false # Facebook-like distraction free mode.
+ pagerDirection: last # Comment sorting direction, available values are last and first.
+ createIssueManually: false # Gitalk will create a corresponding github issue for your every single page automatically
count: true # Display comment count on top_img
valine:
enable: false # if you want use valine,please set this value is true
appId: # leancloud application app id
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
avatar: monsterid # gravatar style https://valine.js.org/#/avatar
lang: en # i18n: zh-cn/en
placeholder: 記得留下你的暱稱和郵箱....可以快速收到回覆 # valine comment input placeholder(like: Please leave your footprints )
guest_info: nick,mail,link #valine comment header info
+ 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)
bg: /img/comment_bg.png # valine background
count: true # Display comment count on top_imgReorganized dark mode configuration.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19- # Dark mode
- darkmode:
- enable: true
-# Auto switch between dark mode and light mode
-# autoChangeMode: 1 Follow the system, browsers/systems that do not support it will automatically switch to dark mode between 6pm and 6am
-# autoChangeMode: 2 Only switch to dark mode between 6pm and 6am
-# autoChangeMode: false Disable auto switch
-autoChangeMode: false
+ darkmode:
+ enable: true
+ # Dark mode and light mode switch button
+ button: true
+ # Auto switch between dark mode and light mode
+ # autoChangeMode: 1 Follow the system, browsers/systems that do not support it will automatically switch to dark mode between 6pm and 6am
+ # autoChangeMode: 2 Only switch to dark mode between 6pm and 6am
+ # autoChangeMode: false Disable auto switch
+ autoChangeMode: falseAdded 404 page.
1
2
3
4
5+# A simple 404 page
+error_404:
+ enable: true
+ subtitle: "Page not found"
+ background:Changed post_beautify to beautify, page beautification is no longer limited to post pages, but also applies to page pages.
1
2
3
4
5-post_beautify:
+beautify:
enable: true
title-prefix-icon: '\f0c1'
title-prefix-icon-color: "#F47466"Can set whether to display cover, and can set the display of cover in different positions.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15-# the default cover of the post
-default_cover: https://cdn.jsdelivr.net/gh/jerryc127/butterfly_cdn@2.1.0/top_img/default.png
-index_post_cover: both
+cover:
+ # Whether to display post cover
+ index_enable: true
+ aside_enable: true
+ archives_enable: true
+ # Position of cover display
+ # Three values can be configured: left, right, both
+ position: both
+ # Default cover to display when no cover is set
+ default_cover:Added configuration for Mermaid, can draw flowcharts, state diagrams, sequence diagrams, Gantt charts, etc.
1
2
3
4
5
6
7
8
9
10
11
12
13
14+# https://github.com/knsv/mermaid
+mermaid:
+ enable: true
+ # built-in themes: default/forest/dark/neutral
+
17. Added pangu configuration to add spaces between Chinese and English characters.
```diff
+# https://github.com/vinta/pangu.js
+# Add spaces between Chinese and English characters
+pangu:
+ enable: true
+ field: page # page/postIntegrated partial configurations.
1
2
3
4
5-avatar_effect: false
+avatar:
+ img: /img/avatar.png
+ effect: true # The avatar will keep spinningAdded decode URL to post-copyright (to display Chinese characters).
1
2
3
4
5post_copyright:
enable: true
+ decode: false
license: CC BY-NC-SA 4.0
license_url: https://creativecommons.org/licenses/by-nc-sa/4.0/Added partial color configurations.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16theme_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'
+ code_foreground: "#F47466"
+ code_background: "rgba(27, 31, 35, .05)"
+ toc_color: "#00c4b6"
+ blockquote_padding_color: "#49b1f5"
+ blockquote_background_color: "#49b1f5"Added tags and update date display for homepage articles, configurable with post_meta.
1
2
3
4
5
6
7
8
9
10
11
12post_meta:
- date_type: both # or created or updated Display both creation and update dates for articles
- categories: true # or false Display categories
- tags: true # or false Display tags
+ page:
+ date_type: both # created or updated or both Display both creation and update dates for homepage articles
+ categories: true # true or false Display categories on homepage
+ tags: true # true or false Display tags on homepage
+ post:
+ date_type: both # created or updated or both Display both creation and update dates for article pages
+ categories: true # true or false Display categories on article pages
+ tags: true # true or false Display tags on article pages
Feature
- Adapted for IE compatibility.
- Added a new Tag Plugin: Gallery Collection.
- Added a new Tag Plugin: tag-hide, with inline/block functionality.
- Removed the display of duplicate content at the beginning of each page.
- Added support for HTML code in the aside bulletin board.
- Added a progress bar and highlighted corresponding titles in the sidebar of the mobile interface.
- Added the source attribution for hitokoto content in the subtitle of the homepage.
- Changed the Hexo link in the footer to use HTTPS.
- Modified the opening effect of menus and table of contents (TOC) on mobile devices.
- Full-screen display for the search interface on mobile pages.
- SEO optimization: Changed the title bar to display as h1.
- Improved reading mode: Background can be adjusted based on light mode and dark mode.
- When JavaScript is blocked, the header will appear (previously controlled by JavaScript and hidden).
Fixed
- Fixed the bug where the script loading for Tencent Analytics was using HTTP instead of HTTPS (#105).
- Fixed the bug where the related articles were displaying incorrect dates.
- Fixed the bug causing errors with gitalk.
- Fixed the bug where the valine background wouldn't display when using an absolute address.
- Fixed the bug where medium-zoom wasn't functioning properly.
- Fixed the bug in Safari where clicking or moving to the homepage article cover would cause the rounded corners to become square (#114).
- Fixed the bug where the avatars for the aside and friendly links were distorted when viewed in certain browsers.
- Fixed the bug where tables would overflow the screen and display a scrollbar when the width was limited (#138).
- Fixed the bug where gitalk JavaScript was loading on pages without comments.
- Fixed the background color issue with tag plugins' gist in different themes (difficult to read text in dark themes).
- Fixed the bug where the highlight figcaption wasn't fully displayed.
- Fixed the bug where Disqus couldn't retrieve the comment count.
- Fixed the bug where subdirectories occasionally didn't appear when clicked on touch screens.
- Fixed the bug where the "a" tags wouldn't wrap to a new line when the text was too long (continuous English letters).
- Fixed the bug where the table of contents would scroll along with the page, affecting the reading progress bar.
- Fixed the bug where the images in the aside section could be clicked to display larger versions.
- Fixed the bug where the parameters for activate-power-mode weren't being applied.
- Fixed language errors (#156).
- Fixed the bug where the homepage scrolling would lag in Safari on desktop.
2.1.0 (2019/12/20)
2.1.0 (2019/12/20)
Feature
- Enable hidden articles
- Adapt the display of Hexo's Tag Plugins Code Block With marked lines
- Configure the position of the homepage cover display
- Change the color scheme in dark mode
- Add closing color and shaking to activate_power_mode
- Add Google ads and Tencent analytics
- Add time display to related articles, adjust layout, and center vertically
- Add comment count to top_img on article pages
- Allow disabling of image zoom on click
- Set mathjax and kathex to load on every page or on demand
- Adapt scrollbar color in dark mode
- Optimize gitalk display in dark mode
- Show only three lines of content when article title is too long
- Add overlay to background image in dark mode
- Optimize display of canvas in dark/read mode
- Improve special effects for donations and prevent immediate disappearance when moving to QR code
- Optimize sub-menu style
- Modify the color of tags in aside to ensure visibility in dark mode
- Upgrade normalize.css to the latest version
- Improve opening animation of toc and menu on mobile devices
- Enhance open/close effect of code blocks
- Simplify JavaScript code and use CSS for some operations
- Optimize some animations in the theme to make them smoother
Fixed
- Fix the bug where clicking on the image icon does not redirect to the corresponding webpage when the image is wrapped in an "a" tag, but instead opens a larger image viewing mode.
- Fix the bug where the menu, donation QR code, and loading background links are incorrect when the URL has a subdirectory.
- Fix the bug where the URL has a subdirectory.
- Fix the bug where the CSS for KaTeX cannot be loaded.
- Fix the bug where the search button does not appear on the article page.
- Fix the bug where the CSS for Gitalk fails to load.
- Fix the bug where the click effect for the fireworks is not working.
- Fix the bug where Gitalk reports "path.startsWith is not a function".
- Fix the bug where the background does not change to a solid color in reading mode.
- Fix the bug where the header occasionally does not stick to the top in reading mode.
- Fix the bug where the links in the Hexo Tag Plugins Block Quote display outside.
- Fix the bug where the archive dates in the aside are misaligned due to excessive length.
- Fix the bug where the toc button still exists when the toc is empty.
- Fix the bug where the avatar does not display after lazy loading is disabled.
- Fix the bug where switching to read mode occasionally does not work in dark mode.
- Fix the bug where the toc and menu buttons are misaligned on some mobile devices.
2.0.0 (2019/11/03)
2.0.0 (2019/11/03)
Breaking changes
- Mobile interface now uses a card-based layout and can display sidebar content.
- Fixed a bug where the header interface would become distorted when there were too many menu items. It now switches to a sidebar mode when there are too many menu items.
- Added medium-zoom for viewing larger images.
- Added mouse click effects: text and heart click effects.
- The homepage subtitle can now call third-party APIs such as Jinshan Ciba, Hitokoto, Yiju, and Today's Poem.
- Added snackbar pop-up windows.
- Renamed nightshift to dark mode, which can now automatically switch based on system settings and can be set to switch with time.
- Fixed display issues with built-in Hexo tag plugins (Block Quote, Code Block With Caption, Gist, Youtube, Vimeo).
- Theme's required CSS and JS can now be configured with a CDN.
- Changed the loading behavior of dark mode so that the website no longer "flashes" when entering the web page after dark mode is set.
- Background effects and images now display on the mobile interface.
- Added justified-gallery image display (Tag Plugins).
Features
- Added icons for word count, reading time, and views on the article page.
- Updated lazy loading JS.
- Upgraded typed.js/instantpage.js to the latest version.
- Added exit effects to search and bottom-right button.
Fixes
- Fixed a bug where some buttons would open a blank page on Hexo 4.0.0.
- Fixed a bug where pagination buttons would display code on Hexo 4.0.0.
- Fixed a bug where the "Go to Comments" button would still appear in the bottom-right corner even when comments were not enabled.
- Optimized the speed of opening the sidebar.
- Fixed a bug where the left and right margins of the article page title were uneven.
- Fixed a bug with keyword reading.
- Fixed a bug where the footer position would be incorrect when the post/page content was empty.
- Fixed a bug where the toc sidebar content would be hidden at the bottom on mobile Safari.
- Improved the dark mode color scheme for certain interfaces.
- Fixed a bug with the "View More" button in the card-archives.
Removals
- Removed Gitment.
- Removed Gallery.
1.2.0 (2019/09/24)
1.2.0 (2019/09/24)
Feature
- Changed the display method and effects of the menu and TOC on mobile pages (TOC is now visible on iPads).
- Added the ability to disable copying of website content.
- Added the ability to automatically add copyright information when copying content.
- Added the ability to modify the top image of tags.
- Added the ability to modify the top image of categories.
- Added the ability to modify the background of Valine.
- Optimized the UI of the archives page.
- Added an icon for ICP.
- Added the ability to set the height of the top image on the homepage.
- Added the ability to set the position of the site-info on the homepage.
- Added the ability to set the UI of the category and tag pages to be the same as the homepage (#31).
- Added the ability to set multiple sentences for the subtitle on the homepage (no longer limited to 2) (#37).
- Added the ability to add spaces before and after menu items.
- Adjusted the layout of the post page.
- Added an icon for bookmarks.
- Added an effect for the announcement icon.
- Added the ability to limit the number of items displayed in the archive module on the homepage, with a "View More" button.
- Adjusted the position of the button in the lower right corner.
Fix
- Fixed the bug where the cover image of an article would display differently in different parts of the same article when generated randomly.
- Fixed the bug where the language setting of Gitalk was invalid.
- Fixed the bug where the '|' character would appear in front of the view count on the post page when the word count was not set.
- Fixed display issue of sub-menu in Safari.
- Fixed the centering issue of comments on the tags page.
- Fixed the issue where the hover color of header links was white.
- Fixed the color bug of the footer in dark mode.
- Fixed the issue where the English display of bookmarks was incomplete.
1.1.5 (2019/09/08)
1.1.5 (2019/09/08)
Feature
- Feature: Inline code block style can be set #26
- Feature: Night mode can be set as default style
- Feature: Code language name can be set to display or not
- Feature: Code box can be set to expand or collapse
- Feature: Background image/color can be set
- Feature: Footer background can be set to display or not
- Feature: Added canvas-nest.js
- Feature: Avatar can be set to rotate
- Feature: Menu can be grouped
Fix
- Optimized the opening effect of the reward and search function
- Optimized the opening effect of the sidebar to avoid inconsistency with the article page effect
- Adapted to hexo-blog-encrypt, now the toc can be displayed
- Fixed the bug where the direct comment button did not disappear when the comment was set to not be displayed
- Fixed the bug where the button did not display properly in three states: when comments and toc were not displayed, and when neither were displayed in the post page footer
- Fixed the bug where the code name followed the code box when scrolling left and right
- Improved the font display of other page titles
- Fixed the bug where the canvas_ribbons would be displayed first when entering the website with the canvas_ribbons option enabled
- Improved font display in night mode
- Fixed the z-index bug of the code box copy and code name
- Improved reading mode
1.1.0 (2019/08/29)
1.1.0 (2019/08/29)
Feature
- Redesigned mobile menu interface
- Added beautification to post page (original melody theme function), and added the ability to change the prefix icon and color of the title
- Added direct comment button for PC
- Can set whether to display copyright information for individual articles
Fix
- Fixed bug where adjusting font size in reading mode had no effect on code
- Adjusted Valine font display issue
- Corrected Valine compatibility issue in night mode
- Fixed bug where Valine settings for notify and verify were not effective (thx @VincentTV)
- Fixed issue where images could not be loaded when lazy loading was enabled using hexo-asset-image
- Fixed bug where 'back to top' arrow could not be clicked
Remove
- Removed "Read More" button from theme
1.0.8 (2019/08/11)
1.0.8 (2019/08/11)
- Feature: Option to disable lazy loading of images
- Feature: Add page layout option to move the right column to the left
- Feature: Add Note (Bootstrap Callout) (ported from the Next theme)
- Feature: TOC can be viewed on mobile devices
- Feature: Add a button to scroll to comments
- Fix: Fix display bug on post page at width 1024px
- Fix: Fix code block not displaying the correct language for some languages
- Fix: Fix bug where Disqus comments were not working when commented out in the settings
1.0.7 (2019/07/29)
1.0.7 (2019/07/29)
Feature
- Feature: add the option to change the site name font-family
- Feature: add the option to close instant-page
- Feature: the sidebar can auto scroll when the toc out of the screen
Fix
- Fix: random cover of previous post and next post
- Fix: Display null when the subtitle not set
- Fix: display related post's headline when it is not related posts
- Fix: the bugs of image display
- Fix: When the picture is loaded, the picture appears black frame