🦄 An elegant theme for Hexo
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
When the text overflows, preview the entire content.
See: Stun docs: Set picture. By default, the image is shown in a single line and centered.
bg_image
(f0e92ae), closes #43
layout.content
option, some pixels less actually (1d931f4)下面是中文翻译:
在主题的 _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
title
属性 (eed8fe9)
当文字信息溢出时,来预览全部内容。
info
类型的 note 标签插件,并使 note 标签插件的 icon 可配置 (2fab025)
zoom_image.gap_aside
配置项 (aa918d3)使用方法见:Stun 文档: 设置图片。默认情况下,图片独占一行并居中显示。
<link rel="canonical" />
的配置项 (bf997d6)
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:
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)
下面是中文翻译:
在主题的 _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)
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
下面是中文翻译:
在主题的 _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
popAlert
组件重复弹出的问题 (2ce0785)cheerio
依赖 (31d6356), 修复了 #25
Modified the _config.yml
file:
header:
mask:
- enable: true
+ enable: false
footer:
+ mask:
+ enable: false
+ opacity: 0.5
下面是中文翻译:
修改了 _config.yml
文件:
header:
mask:
- enable: true
+ enable: false
footer:
+ mask:
+ enable: false
+ opacity: 0.5
Modified the _config.yml file:
sidebar:
- offsetTop: 20px
+ offsetTop: 30px
- width: 260px
+ width: 280px
pjax:
+ scrollTo2screen: false
下面是中文翻译:
修改了 _config.yml
文件:
sidebar:
- offsetTop: 20px
+ offsetTop: 30px
- width: 260px
+ width: 280px
pjax:
+ scrollTo2screen: false
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