Releases: liuyib/hexo-theme-stun
v2.0.0-rc.0
💥 Breaking Changes
In theme's _config.yml
:
+ canonical: true
menu:
- home: / || home
+ home: / || fas fa-home
- archives: /archives/ || folder-open
+ archives: /archives/ || fas fa-folder-open
- # categories: /categories/ || th
+ # categories: /categories/ || fas fa-layer-group
- # tags: /tags/ || tags
+ # tags: /tags/ || fas fa-tags
- # xxx: javascript:; || xxx
+ # xxx1: javascript:; || fa(s|r|l|d|b) fa-xxx
submenu:
# xxx:
- # xx1: /xxx/ || xxx
+ # xxx1-1: /xxx1-1/ || fa(s|r|l|d|b) fa-xxx
- # xx2: /xxx/ || xxx
+ # xxx1-2: /xxx1-2/ || fa(s|r|l|d|b) fa-xxx
social:
- github: https://github.com/ || github
+ github: https://github.com/ || fab fa-github
- google: https://plus.google.com/ || google
+ google: https://plus.google.com/ || fab fa-google
- # twitter: https://twitter.com/ || twitter
+ twitter: https://twitter.com/ || fab fa-twitter
- # youtube: https://youtube.com/ || youtube
+ youtube: https://youtube.com/ || fab fa-youtube
- # weibo: https://weibo.com/ || weibo
+ # weibo: https://weibo.com/ || fab fa-weibo
- # wechat: yournumber || weixin
+ # wechat: yournumber || fab fa-weixin
- # telegram: yournumber || telegram
+ # telegram: yournumber || fab fa-telegram
- # qq: yournumber || qq
+ # qq: yournumber || fab fa-qq
author:
avatar:
- url: /images/avatar.png
+ url: /images/icons/stun-logo.svg
header:
scroll_down_icon:
+ name: fas fa-angle-down
body:
mask:
- enable: true
+ enable: false
footer:
icon:
- name: heart
+ name: fas fa-heart
post_meta:
created:
- icon: calendar-o
+ icon: far fa-calendar-plus
updated:
- icon: calendar-check-o
+ icon: far fa-calendar-check
reading_time:
- icon: clock-o
+ icon: far fa-clock
word_count:
- icon: file-word-o
+ icon: far fa-file-word
stick_top:
- icon: thumb-tack
+ icon: fas fa-thumbtack
back2top:
icon:
- name: rocket
+ name: fas fa-rocket
busuanzi:
site_uv:
- icon: user
+ icon: fas fa-user
site_pv:
- icon: eye
+ icon: fas fa-eye
post_pv:
- icon: eye
+ icon: fas fa-eye
- auto_excerpt:
- enable: false
- length: 150
external_link:
icon:
- name: external-link
+ name: fas fa-external-link-alt
zoom_image:
+ gap_aside: 20px
pjax:
- scrollTo2screen: false
+ avoid_banner: false
- fa_prefix: fa
+ icon:
+ search: fas fa-search
+ localsearch_empty: far fa-meh
+ menu_btn: fas fa-bars
+ feed_email: fas fa-envelope
+ feed_rss: fas fa-rss
+ paginator_prev: fas fa-angle-left
+ paginator_next: fas fa-angle-right
+ read_more_btn: fas fa-long-arrow-alt-right
+ post_tags: fas fa-tag
+ copy_btn: fas fa-copy
+ prompt_success: fas fa-check-circle
+ prompt_info: fas fa-arrow-circle-right
+ prompt_warning: fas fa-exclamation-circle
+ prompt_error: fas fa-times-circle
+ valine_visitor: fas fa-eye
+ post_heading: fas fa-link
+ notetag_default: fas fa-arrow-circle-right
+ notetag_success: fas fa-check-circle
+ notetag_info: fas fa-info-circle
+ notetag_warning: fas fa-exclamation-circle
+ notetag_danger: fas fa-minus-circle
🌟 Features
- Add 'title' attribute to friends plugin (eed8fe9)
- Add 'info' note plugin & make icon of note plugin configurable (2fab025)
- Add gap configuration item to zoom-image (aa918d3)
- Use fontawesome5.x and support setting all icons (d585a71)
- Add open graph (2a8205f)
- Support inline image (8276875)
See: Stun docs: Set picture. By default, the image is shown in a single line and centered.
- Add canonical setting (bf997d6)
🐛 Bug Fixes
- Search box is forbidden in iOS (094a74d)
- #43: Footer bar is not show when enable body
bg_image
(f0e92ae), closes #43 - Toc highlighting is incorrect (a314dc0)
- Hotkey of switching post is invalid (e77f00b)
- Social link icon not show normally when overflow (3f3dd57)
- Set
layout.content
option, some pixels less actually (1d931f4) - Duplicated count for busuanzi (8198d5a)
下面是中文翻译:
💥 破坏性更改
在主题的 _config.yml
文件中:
+ canonical: true
menu:
- home: / || home
+ home: / || fas fa-home
- archives: /archives/ || folder-open
+ archives: /archives/ || fas fa-folder-open
- # categories: /categories/ || th
+ # categories: /categories/ || fas fa-layer-group
- # tags: /tags/ || tags
+ # tags: /tags/ || fas fa-tags
- # xxx: javascript:; || xxx
+ # xxx1: javascript:; || fa(s|r|l|d|b) fa-xxx
submenu:
# xxx:
- # xx1: /xxx/ || xxx
+ # xxx1-1: /xxx1-1/ || fa(s|r|l|d|b) fa-xxx
- # xx2: /xxx/ || xxx
+ # xxx1-2: /xxx1-2/ || fa(s|r|l|d|b) fa-xxx
social:
- github: https://github.com/ || github
+ github: https://github.com/ || fab fa-github
- google: https://plus.google.com/ || google
+ google: https://plus.google.com/ || fab fa-google
- # twitter: https://twitter.com/ || twitter
+ twitter: https://twitter.com/ || fab fa-twitter
- # youtube: https://youtube.com/ || youtube
+ youtube: https://youtube.com/ || fab fa-youtube
- # weibo: https://weibo.com/ || weibo
+ # weibo: https://weibo.com/ || fab fa-weibo
- # wechat: yournumber || weixin
+ # wechat: yournumber || fab fa-weixin
- # telegram: yournumber || telegram
+ # telegram: yournumber || fab fa-telegram
- # qq: yournumber || qq
+ # qq: yournumber || fab fa-qq
author:
avatar:
- url: /images/avatar.png
+ url: /images/icons/stun-logo.svg
header:
scroll_down_icon:
+ name: fas fa-angle-down
body:
mask:
- enable: true
+ enable: false
footer:
icon:
- name: heart
+ name: fas fa-heart
post_meta:
created:
- icon: calendar-o
+ icon: far fa-calendar-plus
updated:
- icon: calendar-check-o
+ icon: far fa-calendar-check
reading_time:
- icon: clock-o
+ icon: far fa-clock
word_count:
- icon: file-word-o
+ icon: far fa-file-word
stick_top:
- icon: thumb-tack
+ icon: fas fa-thumbtack
back2top:
icon:
- name: rocket
+ name: fas fa-rocket
busuanzi:
site_uv:
- icon: user
+ icon: fas fa-user
site_pv:
- icon: eye
+ icon: fas fa-eye
post_pv:
- icon: eye
+ icon: fas fa-eye
- auto_excerpt:
- enable: false
- length: 150
external_link:
icon:
- name: external-link
+ name: fas fa-external-link-alt
zoom_image:
+ gap_aside: 20px
pjax:
- scrollTo2screen: false
+ avoid_banner: false
- fa_prefix: fa
+ icon:
+ search: fas fa-search
+ localsearch_empty: far fa-meh
+ menu_btn: fas fa-bars
+ feed_email: fas fa-envelope
+ feed_rss: fas fa-rss
+ paginator_prev: fas fa-angle-left
+ paginator_next: fas fa-angle-right
+ read_more_btn: fas fa-long-arrow-alt-right
+ post_tags: fas fa-tag
+ copy_btn: fas fa-copy
+ prompt_success: fas fa-check-circle
+ prompt_info: fas fa-arrow-circle-right
+ prompt_warning: fas fa-exclamation-circle
+ prompt_error: fas fa-times-circle
+ valine_visitor: fas fa-eye
+ post_heading: fas fa-link
+ notetag_default: fas fa-arrow-circle-right
+ notetag_success: fas fa-check-circle
+ notetag_info: fas fa-info-circle
+ notetag_warning: fas fa-exclamation-circle
+ notetag_danger: fas fa-minus-circle
🌟 新功能
v1.7.0
💥 Breaking Changes
In theme's _config.yml
:
+ sougou_site_verification:
layout:
- main_side_gap: 20px
+ main_padding:
+ default: 20px
+ tablet: 15px
+ mobile: 10px
header:
+ enable: true
+ show_on:
+ post: true
- nav_height: 50px
+ nav:
+ height: 50px
+ bg_color: "#333"
+ body:
+ bg_image:
+ enable: false
+ url:
+ fixed: true
+ repeat: false
+ mask:
+ enable: true
+ opacity:
+ default: 0.1
+ night_mode: 0.6
sidebar:
- offsetTop: 30px
+ offsetTop: 20px
toc:
- number: true
+ list_number: true
+ min_depth: 1
- max_depth: 6
+ max_depth: 4
post_widget:
+ share:
+ enable: false
+ label: "Share to: "
+ target: qzone, qq, weibo, wechat, douban, linkedin, facebook, twitter, google
cdn:
+ share_js:
+ share_css:
🌟 Features
-
Add
min_depth
option to toc (89bb869)toc: + min_depth: 1
You can use
toc_min_depth
of Front-Matter in article to cover it. -
Set more configuration items for the layout (3a9ad3f)
-
Make the background image of body configurable (18b74c5)
-
Make the display of website header configurable (a167675)
-
Add sougou webmaster tools (0ce3569)
-
Add article sharing (c5e640e)
🐛 Bug Fixes
- Nightmode not blur when click document (2c8466e)
- Animation of scroll icon doesn't work in iOS (21f87ac)
- Article header overlay submenu (0162383)
- Compatible with pjax when header are not enabled (8302d30)
- Submenu is not hidden after the mouse passes over it (576f177)
- Solved that click the parent element of secondary menu to jump (a21e296)
- #28: Solve heading parsing error (8a9ca01), closes #28
- Long link overflow and set the min-width for table items (0ef6fe0)
- Valine is not reload when switching pages by pjax (a750791)
下面是中文翻译:
💥 破坏性更改
在主题的 _config.yml
文件中:
+ sougou_site_verification:
layout:
- main_side_gap: 20px
+ main_padding:
+ default: 20px
+ tablet: 15px
+ mobile: 10px
header:
+ enable: true
+ show_on:
+ post: true
- nav_height: 50px
+ nav:
+ height: 50px
+ bg_color: "#333"
+ body:
+ bg_image:
+ enable: false
+ url:
+ fixed: true
+ repeat: false
+ mask:
+ enable: true
+ opacity:
+ default: 0.1
+ night_mode: 0.6
sidebar:
- offsetTop: 30px
+ offsetTop: 20px
toc:
- number: true
+ list_number: true
+ min_depth: 1
- max_depth: 6
+ max_depth: 4
post_widget:
+ share:
+ enable: false
+ label: "Share to: "
+ target: qzone, qq, weibo, wechat, douban, linkedin, facebook, twitter, google
cdn:
+ share_js:
+ share_css:
🌟 新功能
-
给文章目录添加
min_depth
配置项 (89bb869)toc: + min_depth: 1
你可以在文章的 Front-Matter 中,使用
toc_min_depth
属性覆盖该配置。 -
添加对布局的更多配置项 (3a9ad3f)
-
使 body 背景图片可配置 (18b74c5)
-
使网站 header 是否显示可配置 (a167675)
-
添加搜狗站长管理工具 (0ce3569)
-
添加文章分享 (c5e640e)
🐛 问题修复
v1.6.0
💥 Breaking Changes
In theme's _config.yml
:
+ night_mode:
+ enable: true
+ button:
+ color: '#fafafa'
+ bg_color: '#8c8a8a'
+ icon:
+ dark: 🌜
+ light: 🌞
+ layout:
+ content: 768px
+ sidebar: 300px
+ content_sidebar_gap: 30px
+ main_side_gap: 20px
sidebar:
- width: 300px
- highlight_theme: light
- code_word_wrap: false
+ codeblock:
+ style: default
+ highlight: light
+ word_wrap: false
🌟 Features
- Add support for 'reward' of front-matter in pages other than posts (63c1473)
- Add support for utterances comments (559fab5)
- Add the button of night mode (5608830)
- Make the layout of sidebar and content configurable (308e90b)
- Add three styles of code block to choose from (ac44aee)
🐛 Bug Fixes
- Display the preset i18n infomation when the post has no title (22a425f)
- Solved that click the parent element of secondary menu to jump (ae083e4)
- Solve the problem that the menu button is not displayed (c596944)
- Solve the problem that the menu button is not displayed(repeat) (476da68)
- Solve the problem that the popAlert component pops up repeatedly (2ce0785)
- Solve the problem of incorrect reading progress calculation (114268c)
- #25: Remove cheerio (31d6356), closes #25
- Solved that the secondary menu not display in some cases (5f904fc)
- Solved the problem that modifying the theme of code block not work (fc39088)
- Solved that friends plugin not show normally when lazyload enabled (63f19fe)
下面是中文翻译:
💥 破坏性更改
在主题的 _config.yml
文件中:
+ night_mode:
+ enable: true
+ button:
+ color: '#fafafa'
+ bg_color: '#8c8a8a'
+ icon:
+ dark: 🌜
+ light: 🌞
+ layout:
+ content: 768px
+ sidebar: 300px
+ content_sidebar_gap: 30px
+ main_side_gap: 20px
sidebar:
- width: 300px
- highlight_theme: light
- code_word_wrap: false
+ codeblock:
+ style: default
+ highlight: light
+ word_wrap: false
🌟 新功能
- 除了文章页面以外的页面,也添加对 Front-Matter 的 'reward' 属性的支持 (63c1473)
- 添加对 utterances 评论系统的支持 (559fab5)
- 添加夜间模式的功能 (5608830)
- 使得 sidebar 和 内容区域的宽度可以配置 (308e90b)
- 提供三种代码块样式可供选择 (ac44aee)
🐛 问题修复
- 在没有标题的文章页面中,使用预设的 i18n 文本作为网站 title (22a425f)
- 解决了点击二级菜单的父元素跳转到空白页的问题 (ae083e4)
- 解决菜单按钮在一些情况下不显示的问题 (c596944)
- 解决菜单按钮在一些情况下不显示的问题(重复修复 bug) (476da68)
- 解决
popAlert
组件重复弹出的问题 (2ce0785) - 解决文章阅读进度条数值计算错误的问题 (114268c)
- #25: 移除
cheerio
依赖 (31d6356), 修复了 #25 - 解决二级菜单在一些情况下不显示的问题 (5f904fc)
- 解决了修改代码块高亮颜色后不生效的问题(修复其他 bug 时引入的 bug)(fc39088)
- 解决当启用 lazyload 时,friends 标签插件不能正常显示的问题(修复其他 bug 时引入的 bug)(63f19fe)
v1.5.4
v1.5.3
v1.5.2
v1.5.1
v1.5.0
Features
- Add mask layer to footer (20050f3)
Bug Fixes
- Supporting the config item of 'copyright: since/end' in footer (7310163)
- #15: Delete the hover effect of the back2top button (37a1e69), closes #15
- Solved the problem that gitalk invalid when enable pjax (ce9ce4f)
Modified the _config.yml
file:
header:
mask:
- enable: true
+ enable: false
footer:
+ mask:
+ enable: false
+ opacity: 0.5
下面是中文翻译:
新功能
- 添加底部栏遮罩的配置项 (20050f3)
问题修复
- 解决配置项 'copyright: since/end' 的支持问题 (7310163)
- #15: 删除返回顶部按钮的 hover 效果 (37a1e69), closes #15
- 解决了启用 Pjax 后 Gitalk 评论加载不出来的问题 (ce9ce4f)
修改了 _config.yml
文件:
header:
mask:
- enable: true
+ enable: false
footer:
+ mask:
+ enable: false
+ opacity: 0.5
v1.5.0-beta.0
Features
- Add the button of sticky-top in timeline of post (7b859df)
- Add the config of scroll to second screen when pjax enabled (ec6ac43)
Bug Fixes
- Solved the problem that the same title in different pages (57ef4c3)
- #16: Solved that mathjax is not working properly (74188c6), closes #16
- Supporting the config item for 'end_text: horizon_line' (eea96d7)
- Solved that set toc & copyright & reward invalid in front-matter (6d4149c)
- Solved that enable op_image is invalid (2ff7190)
- Solved that sidebar not sitcky sometimes (fed19e0)
- Resolve some problems of toc (ebf5d11)
- #14: Resolve wrong display in toc when click heading in it (8f06543)
Modified the _config.yml file:
sidebar:
- offsetTop: 20px
+ offsetTop: 30px
- width: 260px
+ width: 280px
pjax:
+ scrollTo2screen: false
下面是中文翻译:
新功能
问题修复
- 解决网站标题在不同页面之间相同的问题 (57ef4c3)
- #16: 解决 MathJax 无法正常解析的问题 (74188c6)
- 解决没有对配置项 'end_text: horizon_line' 支持的问题 (eea96d7)
- 解决 Front-Matter:toc & copyright & reward 失效的问题 (6d4149c)
- 解决 Front-Matter:top_image 失效的问题 (2ff7190)
- 解决了侧边栏启用 Pjax 后,有时固定位置失效问题 (fed19e0)
- 解决了文章中存在 h1 标签时,目录功能异常的问题 (ebf5d11)
- #14: 解决了点击目录后,文字高亮错误的问题 (8f06543)
修改了 _config.yml
文件:
sidebar:
- offsetTop: 20px
+ offsetTop: 30px
- width: 260px
+ width: 280px
pjax:
+ scrollTo2screen: false