Skip to content

Commit

Permalink
Merge branch 'head_v7.1.0' into head_v7.4.0
Browse files Browse the repository at this point in the history
* head_v7.1.0:
  update leancloud
  mermaid config
  links add
  config update
  Fix wrong sidebar style on mobile (theme-next#808)
  fix pdf tag
  archive show month
  config
  config
  config update
  fix local search
  config update
  config update
  local search and favicon
  _config.yml

# Conflicts:
#	_config.yml
#	layout/_macro/sidebar.swig
#	layout/_third-party/comments/valine.swig
#	layout/_third-party/search/localsearch.swig
#	layout/archive.swig
#	source/css/_common/components/back-to-top-sidebar.styl
#	source/css/_common/components/back-to-top.styl
#	source/css/_common/components/sidebar/sidebar-toggle.styl
#	source/css/_mixins/base.styl
#	source/css/_variables/Mist.styl
#	source/css/_variables/base.styl
  • Loading branch information
xjay2007 committed Sep 10, 2019
2 parents 652a8b7 + 5e75c05 commit 1d06a20
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 49 deletions.
106 changes: 57 additions & 49 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ rss:

footer:
# Specify the date when the site was setup. If not defined, current year will be used.
#since: 2015
since: 2019

# Icon between year and copyright info.
icon:
Expand Down Expand Up @@ -98,9 +98,9 @@ footer:
# CC licenses are available in 39 languages, you can find the specific and correct abbreviation you need on https://creativecommons.org
creative_commons:
license: by-nc-sa
sidebar: false
post: false
language:
sidebar: true
post: true
language: deed.zh


# ---------------------------------------------------------------
Expand All @@ -116,11 +116,11 @@ disable_baidu_transformation: false
canonical: true

# Change headers hierarchy on site-subtitle (will be main site description) and on all post / page titles for better SEO-optimization.
seo: false
seo: true

# If true, will add site-subtitle to index page.
# Remember to set up your site-subtitle in Hexo `_config.yml` (e.g. subtitle: Subtitle)
index_with_subtitle: false
index_with_subtitle: true

# Automatically add external URL with Base64 encrypt & decrypt.
exturl: false
Expand Down Expand Up @@ -158,9 +158,13 @@ baidu_push: false
menu:
home: / || home
#about: /about/ || user
#tags: /tags/ || tags
#categories: /categories/ || th
tags: /tags/ || tags
categories: /categories/ || th
archives: /archives/ || archive
# game: /game/ || gamepad
comments: /comments/ || comments
links: /links/ || link

#schedule: /schedule/ || calendar
#sitemap: /sitemap.xml || sitemap
#commonweal: /404/ || heartbeat
Expand All @@ -176,10 +180,10 @@ menu_settings:
# ---------------------------------------------------------------

# Schemes
scheme: Muse
#scheme: Mist
#scheme: Pisces
#scheme: Gemini
# scheme: Muse
scheme: Mist
# scheme: Pisces
# scheme: Gemini


# ---------------------------------------------------------------
Expand All @@ -196,8 +200,8 @@ site_state: true
# Value before `||` delimiter is the target permalink.
# Value after `||` delimiter is the name of Font Awesome icon. If icon (with or without delimiter) is not specified, globe icon will be loaded.
social:
#GitHub: https://github.com/yourname || github
#E-Mail: mailto:yourname@gmail.com || envelope
GitHub: https://github.com/xjay2007 || github
E-Mail: mailto:xjay2007@163.com || envelope
#Weibo: https://weibo.com/yourname || weibo
#Google: https://plus.google.com/yourname || google
#Twitter: https://twitter.com/yourname || twitter
Expand All @@ -210,8 +214,8 @@ social:

social_icons:
enable: true
icons_only: false
transition: false
icons_only: true
transition: true

# Blog rolls
links_settings:
Expand All @@ -222,13 +226,16 @@ links_settings:

links:
#Title: http://example.com
dotrabbit's lair: http://dotrabbit.tk
LePhee's Blog: http://www.lephee.net
联系友链>>: /links/

# Sidebar Avatar
avatar:
# In theme directory (source/images): /images/avatar.gif
# In site directory (source/uploads): /uploads/avatar.gif
# You can also use other linking images.
url: #/images/avatar.gif
url: /images/avatar-256.jpg
# If true, the avatar would be dispalyed in circle.
rounded: false
# If true, the avatar would be rotated with the cursor.
Expand All @@ -248,25 +255,25 @@ toc:

sidebar:
# Sidebar Position.
position: left
#position: right
# position: left
position: right

# Manual define the sidebar width. If commented, will be default for:
# Muse | Mist: 320
# Pisces | Gemini: 240
#width: 300
width: 240

# Sidebar Display (only for Muse | Mist), available values:
# - post expand on posts automatically. Default.
# - always expand for all pages automatically.
# - hide expand only when click on the sidebar toggle icon.
# - remove totally remove sidebar including sidebar toggle.
display: post
display: always

# Sidebar offset from top menubar in pixels (only for Pisces | Gemini).
offset: 12
# Enable sidebar on narrow view (only for Muse | Mist).
onmobile: false
onmobile: true

# A button to open designated chat widget in sidebar.
# Firstly, you need enable the chat service you want to activate its sidebar button.
Expand All @@ -284,7 +291,7 @@ chat:
# ---------------------------------------------------------------

# Automatically scroll page to section which is under <!-- more --> mark.
scroll_to_more: true
scroll_to_more: false

# Automatically excerpt description in homepage as preamble text.
excerpt_description: true
Expand Down Expand Up @@ -342,15 +349,15 @@ reward:
# Related popular posts
# Dependencies: https://github.com/tea3/hexo-related-popular-posts
related_posts:
enable: false
title: # Custom header, leave empty to use the default one
enable: true
title: 相似文章 # Custom header, leave empty to use the default one
display_in_home: false
params:
maxCount: 5
#PPMixingRate: 0.0
#isDate: false
#isImage: false
#isExcerpt: false
# isDate: false
# isImage: false
# isExcerpt: false

# Post edit
# Dependencies: https://github.com/hexojs/hexo-deployer-git
Expand All @@ -366,7 +373,7 @@ post_edit:
# ---------------------------------------------------------------

# Enable "cheers" for archive page.
cheers: true
cheers: false

# TagCloud settings for tags page.
tagcloud:
Expand Down Expand Up @@ -424,12 +431,12 @@ codeblock:
# Code Highlight theme
# Available values: normal | night | night eighties | night blue | night bright
# See: https://github.com/chriskempson/tomorrow-theme
highlight_theme: normal
highlight_theme: night
# Add copy button on codeblock
copy_button:
enable: false
enable: true
# Show text copy result.
show_result: false
show_result: true
# Available values: default | flat | mac
style:

Expand All @@ -438,7 +445,7 @@ back2top:
# Back to top in sidebar.
sidebar: false
# Scroll percent label in b2t button.
scrollpercent: false
scrollpercent: true

# Reading progress bar
reading_progress:
Expand Down Expand Up @@ -530,7 +537,7 @@ font:

# Math Formulas Render Support
math:
enable: false
enable: true

# Default (true) will load mathjax / katex script on demand.
# That is it only render those page which has `mathjax: true` in Front-matter.
Expand All @@ -539,7 +546,7 @@ math:

# hexo-renderer-pandoc (or hexo-renderer-kramed) required for full MathJax support.
mathjax:
enable: false
enable: true
# See: https://mhchem.github.io/MathJax-mhchem/
mhchem: false

Expand Down Expand Up @@ -652,19 +659,20 @@ changyan:
# You can get your appid and appkey from https://leancloud.cn
# For more information: https://valine.js.org, https://github.com/xCss/Valine
valine:
enable: false # When enable is set to be true, leancloud_visitors is recommended to be closed for the re-initialization problem within different leancloud adk version
appid: # Your leancloud application appid
appkey: # Your leancloud application appkey
enable: true # When enable is set to be true, leancloud_visitors is recommended to be closed for the re-initialization problem within different leancloud adk version
appid: BDClYzBeMRLJtfjAb9BBtYGz-MdYXbMMI # Your leancloud application appid
appkey: km4X4PQDFgv3e0Kvz1TEPYsI # Your leancloud application appkey
notify: false # Mail notifier. See: https://github.com/xCss/Valine/wiki
verify: false # Verification code
placeholder: Just go go # Comment box placeholder
placeholder: 来都来了,说点什么吧~ # Comment box placeholder
avatar: mm # Gravatar style
guest_info: nick,mail,link # Custom comment header
pageSize: 10 # Pagination size
language: # Language, available values: en, zh-cn
pageSize: 20 # Pagination size
language: zh-cn # Language, available values: en, zh-cn
visitor: false # leancloud-counter-security is not supported for now. When visitor is set to be true, appid and appkey are recommended to be the same as leancloud_visitors' for counter compatibility. Article reading statistic https://valine.js.org/visitor.html
comment_count: true # If false, comment count will only be displayed in post page, not in home page
#post_meta_order: 0
recordIP: true # manual added don't delete

# LiveRe comments system
# You can get your uid from https://livere.com/insight/myCode (General web site)
Expand Down Expand Up @@ -771,15 +779,15 @@ leancloud_visitors:
# Visit https://console.firebase.google.com/u/0/ to get apiKey and projectId.
# Visit https://firebase.google.com/docs/firestore/ to get more information about firestore.
firestore:
enable: false
enable: true
collection: articles # Required, a string collection name to access firestore database
apiKey: # Required
projectId: # Required
apiKey: AIzaSyCOupyyT9c_HVputgUAkikpDbhJeZrCYb8 # Required
projectId: xjay-hexo-blog # Required

# Show Views / Visitors of the website / page with busuanzi.
# Get more information on http://ibruce.info/2015/04/04/busuanzi
busuanzi_count:
enable: false
enable: true
total_visitors: true
total_visitors_icon: user
total_views: true
Expand Down Expand Up @@ -813,7 +821,7 @@ algolia_search:
# Local Search
# Dependencies: https://github.com/wzpan/hexo-generator-search
local_search:
enable: false
enable: true
# If auto, trigger search by changing input.
# If manual, trigger search by pressing enter key or search button.
trigger: auto
Expand Down Expand Up @@ -888,9 +896,9 @@ pdf:

# Mermaid tag
mermaid:
enable: false
enable: true
# Available themes: default | dark | forest | neutral
theme: forest
theme: neutral


# ---------------------------------------------------------------
Expand All @@ -901,7 +909,7 @@ mermaid:
# For more information: http://velocityjs.org
motion:
enable: true
async: false
async: true
transition:
# Transition variants:
# fadeIn | fadeOut | flipXIn | flipXOut | flipYIn | flipYOut | flipBounceXIn | flipBounceXOut | flipBounceYIn | flipBounceYOut
Expand Down
5 changes: 5 additions & 0 deletions languages/zh-CN.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ menu:
schedule: 日程表
sitemap: 站点地图
commonweal: 公益 404
game: 小游戏
comments: 留言
links: 友链
sidebar:
overview: 站点概览
toc: 文章目录
Expand Down Expand Up @@ -93,3 +96,5 @@ symbols_count_time:
time: 阅读时长
time_total: 站点阅读时长
time_minutes: 分钟
links:
title: 友情链接
1 change: 1 addition & 0 deletions layout/_third-party/comments/valine.swig
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ NexT.utils.getScript('{{ valine_uri }}', () => {
pageSize: '{{ theme.valine.pageSize }}' || 10,
visitor: {{ theme.valine.visitor }},
lang: '{{ theme.valine.language }}' || 'zh-cn',
recordIP: '{{ theme.valine.recordIP }}' || 'true',
path: location.pathname
});
}, window.Valine);
Expand Down
Binary file modified source/images/apple-touch-icon-next.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/images/favicon-16x16-next.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/images/favicon-32x32-next.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1d06a20

Please sign in to comment.