Hexo Theme Stun Versions Save

🦄 An elegant theme for Hexo

v2.0.0-rc.0

4 years ago

💥 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)

    When the text overflows, preview the entire content.

  • 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)

    See: Canonical link element

🐛 Bug Fixes

  • Search box is forbidden in iOS (094a74d)

    See: Caniuse user-select-none Canonical link element

  • #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

🌟 新功能

  • 给 friends 标签插件添加 title 属性 (eed8fe9)

    当文字信息溢出时,来预览全部内容。

  • 新增 info 类型的 note 标签插件,并使 note 标签插件的 icon 可配置 (2fab025)

  • 添加 zoom_image.gap_aside 配置项 (aa918d3)
  • 升级到 Font Awesome 5.x 并支持配置所有 icon (d585a71)
  • 添加 open graph (2a8205f)
  • 支持显示行内图片 (8276875)

    使用方法见:Stun 文档: 设置图片。默认情况下,图片独占一行并居中显示。

  • 添加 <link rel="canonical" /> 的配置项 (bf997d6)

    详见:Canonical link element

🐛 问题修复

  • 在 iOS 中,搜索框无法聚焦 (094a74d)

    详见:Caniuse user-select-none Canonical link element

  • #43: 当启用 body 元素上的背景图片时,底部栏被覆盖 (f0e92ae), 关闭了 #43
  • 文章目录的项高亮显示不正确 (a314dc0)
  • 切换文章的快捷键未生效 (e77f00b)
  • 当社交链接中的内容溢出时,显示不正常 (3f3dd57)
  • 设置了 layout.content 选项时,实际效果会少一些距离 (1d931f4)
  • 卜算子统计重复计数 (8198d5a)

v1.7.0

4 years ago

💥 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)

🐛 问题修复

  • 点击页面时,夜晚模式按钮不失焦 (2c8466e)
  • 在 iOS 中,下拉提示按钮显示不正常 (21f87ac)
  • 二级菜单被文章头部的信息覆盖 (0162383)
  • 当设置 header 不显示时,对 pjax 的兼容 (8302d30)
  • 鼠标经过二级菜单后,不隐藏的问题 (576f177)
  • 点击二级菜单父元素跳转空白页面 (a21e296)
  • #28: 文章标题解析错误 (8a9ca01), closes #28
  • 过长的链接溢出文档 (0ef6fe0)
  • 通过 pjax 切换页面时,valine 评论不会重新加载的问题 (a750791)

v1.6.0

4 years ago

💥 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

4 years ago

Bug Fixes

  • #20: Solved that the paginator can't show normally (7d321bc), closes #20

Features

  • Add the icon that prompt to scroll down in the header of site (c05223a)

下面是中文翻译:

Bug Fixes

  • #20: 解决了分页器显示不正常的问题 (7d321bc), 关闭了 #20

Features

  • 在网站顶部添加下拉提示的按钮 (c05223a)

v1.5.3

4 years ago

Bug Fixes

  • Solved that localsearch throw error when post has code snippet (97fb081)

下面是中文翻译:

Bug Fixes

  • 解决使用 localsearch 时,如果文章里存在代码片段可能报错的问题 (97fb081)

v1.5.2

4 years ago

Bug Fixes

  • Remove hexo cache to solve some problem (2807baa)

Modified the _config.yml file:

- cache: true

下面是中文翻译:

问题修复

  • 移除 Hexo 缓存功能 (2807baa)

修改了 _config.yml 文件:

- cache: true

v1.5.1

4 years ago

Features

  • Displaying an icon in localsearch when search result is empty (a64dd76)

Bug Fixes

  • Solved the problem that the image of post shows unexpectedly (6cbc344)

下面是中文翻译:

新功能

  • 当 localsearch 搜索结果为空时,显示一个 Icon 作为提示信息 (a64dd76)

问题修复

  • 解决了顶部图显示错误的问题 (6cbc344)

v1.5.0

4 years ago

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

4 years ago

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

下面是中文翻译:

新功能

  • 在文章归档中添加置顶图标 (7b859df)
  • 将启用 Pjax 后,每次加载页面后滚动到第二屏的功能加入配置项 (ec6ac43)

问题修复

  • 解决网站标题在不同页面之间相同的问题 (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

v1.4.1

4 years ago

fix(#13): Closed configuration item that was incorrectly enabledhttps://github.com/liuyib/hexo-theme-stun/commit/1da9fd5d455c356c521aa0f1989ddead94a80530


下面是中文翻译:

fix(#13): 关闭了被错误启用的配置项https://github.com/liuyib/hexo-theme-stun/commit/1da9fd5d455c356c521aa0f1989ddead94a80530