Hexo-Config

春江潮水连海平,海上明月共潮生。

唐·张若虚·春江花月夜

站点配置文件

# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/

# Site
title: reuixiy
subtitle: Viva La Vida
description:
author: reuixiy
language: zh-Hans
timezone:

# URL
url: https://reuixiy.github.io/
root: /
# 博客文章的 URL 结构,请务必写文章之前就想好!
# 详细参数请查看:https://hexo.io/docs/permalinks.html
# 当然最好不要参考我的,我的太不利于 SEO 了,除非……
permalink: :category/:year/:month/:day/:title.html
permalink_defaults:

# Directory
source_dir: source
public_dir: public
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
skip_render:

# Writing
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link: true # Open external links in new tab
filename_case: 0
render_drafts: false
post_asset_folder: false
relative_link: false
future: true
# 代码高亮设置
highlight:
enable: true
line_number: true
# 代码自动高亮
auto_detect: true
tab_replace:
# 关于代码高亮的更多知识,可以查看本文 6.5.2 节

# Home page setting
# path: Root path for your blogs index page. (default = '')
# per_page: Posts displayed per page. (0 = disable pagination)
# order_by: Posts order. (Order by date descending by default)
index_generator:
path: ''
per_page: 10
order_by: -date

# Category & Tag
default_category: uncategorized
# URL 中的分类和标签“翻译”成英文
# 见:https://github.com/hexojs/hexo/issues/1162
category_map:
tag_map:

# Date / Time format
## Hexo uses Moment.js to parse and display date
## You can customize the date format as defined in
## http://momentjs.com/docs/#/displaying/format/
date_format: YYYY-MM-DD
time_format: HH:mm:ss

# Pagination
## Set per_page to 0 to disable pagination
# 这个我有点懵,上面不是有啊……
per_page: 10
pagination_dir: page

## 修改归档页面、某一分类页面、某一标签页面的显示篇数
## 参考:http://theme-next.iissnan.com/faqs.html#setting-page-size
archive_generator:
per_page: 0
yearly: false
monthly: false
daily: false

category_generator:
per_page: 0

tag_generator:
per_page: 0

# Extensions
## Plugins: https://hexo.io/plugins/
# RSS,要先进入站点文件夹根目录安装插件
# npm install hexo-generator-feed --save 即可
# 无需更多配置
# 参数说明查看 README:https://github.com/hexojs/hexo-generator-feed
feed:
type: atom
path: atom.xml
# 文章数,0 为全部
limit: 0
hub:
# 是否包含文章内容
content: true

# emoji 支持,教程见本文 6.3 节
githubEmojis:
enable: true
idName: github-emoji
unicode: false
styles:
localEmojis:

## Themes: https://hexo.io/themes/
# 主题配置
theme: next

# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
type: git
repository: https://github.com/reuixiy/reuixiy.github.io.git
branch: master

主题配置文件

# ---------------------------------------------------------------
# Theme Core Configuration Settings
# ---------------------------------------------------------------

# 更新相关,参考:
# https://github.com/iissnan/hexo-theme-next/issues/328
# 博主没有使用,更新主题你可以使用本文 2.3 节的方法
override: false

# ---------------------------------------------------------------
# Site Information Settings
# ---------------------------------------------------------------

# 站点图标啦,直接去 https://realfavicongenerator.net
# 选项弄好后,下载压缩包,解压复制粘贴
# 建议放在 hexo-site/source/images/ 里(没有自己建)
# 这样可以避免更新 NexT 主题的时候遇到麻烦
# 最后记得要稍微改下文件名,与下面的保持一致
favicon:
small: /images/favicon-16x16.png
medium: /images/favicon-32x32.png
apple_touch_icon: /images/apple-touch-icon.png
safari_pinned_tab: /images/safari-pinned-tab.svg
android_manifest: /images/manifest.json
ms_browserconfig: /images/browserconfig.xml

# Set default keywords (Use a comma to separate)
# 站点关键字,利于 SEO 大概,记得用英文逗号分隔
keywords: reuixiy,哲学,Hexo,博客,Coldplay

# Set rss to false to disable feed link.
# Leave rss as empty to use site's feed link.
# Set rss to specific value if you have burned your feed already.
# RSS,若参考上文 3.2 节站点配置文件里面的注释配置
# 则无需在这添加任何东西
rss:

footer:
# 页脚配置
# Specify the date when the site was setup.
# If not defined, current year will be used.
# 建站年份
since: 2017

# Icon between year and copyright info.
# 年份后面的图标,为 Font Awesome 图标
# 自己去纠结 https://fontawesome.com/v4.7.0/
# 然后更改名字就行,下面的有关图标的设置都一样
icon: heart

# If not defined, will be used `author` from Hexo main config.
# 如果不定义,默认用站点配置文件的 author 名
copyright:
# -------------------------------------------------------------
# Hexo link (Powered by Hexo).
# Hexo 的链接
powered: false

theme:
# Theme & scheme info link (Theme - NexT.scheme).
enable: false
# Version info of NexT after scheme info (vX.X.X).
version: false
# -------------------------------------------------------------
# Any custom text can be defined here.
# 自定义内容,要加记得把前面的 # 去掉
#custom_text:

# ---------------------------------------------------------------
# SEO Settings
# ---------------------------------------------------------------

canonical: true

seo: false

# If true, will add site-subtitle to index page, added in main hexo config.
# subtitle: Subtitle
index_with_subtitle: false


# ---------------------------------------------------------------
# Menu Settings
# ---------------------------------------------------------------

# 菜单设置 || 菜单图标设置(图标上面说了,不重复)
# 项目换行可以更改显示顺序
# 如果这个项前会显示 .menu
# 解决方法:编辑 ~/blog/themes/next/languages 下的相应文件
# 比如添加一个“留言”菜单,站点配置文件的 language 是 zh-Hans
# 则编辑 zh-Hans.yml,在 menu: 项内添加一行 留言: 留言
# 注意空格,且符号 : 为英文字符!
menu:
home: / || home
archives: /archives/ || archive
categories: /categories/ || th
tags: /tags/ || tags
top: /top/ || signal
about: /about/ || futbol-o
#schedule: /schedule/ || calendar
#sitemap: /sitemap.xml || sitemap
#commonweal: /404/ || heartbeat

# Enable/Disable menu icons.
# 是否开启菜单图标
menu_icons:
enable: true

# ---------------------------------------------------------------
# Scheme Settings
# ---------------------------------------------------------------

# Schemes
# 设计板式,都长啥样,去 README 里面的链接里看看
# https://github.com/iissnan/hexo-theme-next#live-preview
scheme: Muse
#scheme: Mist
#scheme: Pisces
#scheme: Gemini


# ---------------------------------------------------------------
# Sidebar Settings
# ---------------------------------------------------------------

# 侧栏社交链接设置,与上面菜单差不多,要生效记得把前面的 # 去掉
#social:
#GitHub: https://github.com/yourname || github
#E-Mail: mailto:yourname@gmail.com || envelope
#Google: https://plus.google.com/yourname || google
#Twitter: https://twitter.com/yourname || twitter
#FB Page: https://www.facebook.com/yourname || facebook
#VK Group: https://vk.com/yourname || vk
#StackOverflow: https://stackoverflow.com/yourname || stack-overflow
#YouTube: https://youtube.com/yourname || youtube
#Instagram: https://instagram.com/yourname || instagram
#Skype: skype:yourname?call|chat || skype

# 侧栏社交链接图标设置
social_icons:
enable: true
icons_only: false
transition: false

# Blog rolls
# 侧栏友链设置
links_icon: globe
links_title: 神奇的链接
#links_layout: block
links_layout: inline
links:
😆 网易云音乐 😆: https://music.163.com/#/user/home?id=86590096
Coldplay Official Website: http://coldplay.com/
获取 Elon Musk 的新闻: https://elonmusknews.org/
尼古拉·特斯拉:发明了现代世界的人: http://www.bilibili.com/video/av6211226/
关于此博客: https://reuixiy.github.io/about/

# Sidebar Avatar
# in theme directory(source/images): /images/avatar.gif
# in site directory(source/uploads): /uploads/avatar.gif
# 侧栏头像设置
# 圆形以及旋转效果在本文 4.2 节的代码里
# 点击回到博客首页教程见本文 5.13 节
# 建议放在 hexo-site/source/uploads/ 里(没有自己建)
# 这样可以避免更新 NexT 主题的时候遇到麻烦
avatar: /uploads/avatar.gif

# Table Of Contents in the Sidebar
# 侧栏文章目录设置(前提是 Markdown 书写正确)
# Markdown 教程见本文 6.2 节
toc:
enable: true

# Automatically add list number to toc.
# 自动加数字序号
number: true

# 如果标题太长,则放到下一行继续显示
# 开启后可能要在 custom.styl 里加代码,本文 4.2 节有
wrap: true

# Creative Commons 4.0 International License.
# http://creativecommons.org/
# Available: by | by-nc | by-nc-nd | by-nc-sa | by-nd | by-sa | zero
#creative_commons: by-nc-sa
#creative_commons:

sidebar:
# Sidebar Position, available value: left | right (only for Pisces | Gemini).
# 侧栏位置设置,可用值:左 | 右(只对 Pisces 和 Gemini 设计版式有效!)
position: left
#position: right

# Sidebar Display, available value (only for Muse | Mist):
# 侧栏显示方式,post 代表只有点进一篇文章内
# 且文章有目录,侧栏才会弹出显示
#display: post
#display: always
display: hide
#display: remove

# Sidebar offset from top menubar in pixels (only for Pisces | Gemini).
# 只对 Pisces 和 Gemini 设计版式有效!
offset: 12

# Back to top in sidebar (only for Pisces | Gemini).
# 只对 Pisces 和 Gemini 设计版式有效!
b2t: false

# Scroll percent label in b2t button.
# 在回到顶部按钮里显示阅读百分比
scrollpercent: true

# Enable sidebar on narrow view (only for Muse | Mist).
# 移动端显示侧栏,只对 Muse 和 Mist 设计版式有效!
onmobile: true


# ---------------------------------------------------------------
# Post Settings
# ---------------------------------------------------------------

# Automatically scroll page to section which is under <!-- more --> mark.
# 点击 [Read More],页面自动滚动到 <!-- more --> 标记处
scroll_to_more: false

# Automatically saving scroll position on each post/page in cookies.
# 用 cookies 保存浏览的位置信息,意味着重新打开这个页面后
# 页面就会自动滚动到上次的位置,除非读者清理浏览器 cookies
save_scroll: false

# Automatically excerpt description in homepage as preamble text.
# 将每篇文章 Front-matter 里 description 的文字作为页面显示的文章摘要
excerpt_description: false

# Automatically Excerpt. Not recommend.
# Please use <!-- more --> in the post to control excerpt accurately.
# 按字数自动加入 [Read More],不建议!
# 建议在文章中加入 <!-- more -->
# 自定义 [Read More] 按钮之前要显示的内容!
auto_excerpt:
enable: false
length: 150

# Post meta display settings
# 文章顶部显示的文章元数据设置
post_meta:
item_text: true
created_at: true
updated_at: false
categories: true

# Post wordcount display settings
# Dependencies: https://github.com/willin/hexo-wordcount
# 显示统计字数和估计阅读时长
# 注意:这个要安装插件,先进入站点文件夹根目录
# 然后:npm install hexo-wordcount --save
post_wordcount:
item_text: true
wordcount: true
min2read: false
totalcount: false
separated_meta: false

# Wechat Subscriber

# Reward

# Declare license on posts
post_copyright:
enable: false
license: CC BY-NC-SA 3.0
license_url: https://creativecommons.org/licenses/by-nc-sa/3.0/


# ---------------------------------------------------------------
# Misc Theme Settings
# ---------------------------------------------------------------

# Reduce padding / margin indents on devices with narrow width.
# 移动端把页面两边留白去除,个人不建议
# 移动端样式可以参考本文 4.2 节的相关代码
mobile_layout_economy: false

# Android Chrome header panel color ($black-deep).
# Android 上 Chrome 浏览器顶部颜色设置
android_chrome_color: "#fff"

# Custom Logo.
# !!Only available for Default Scheme currently.
# Options:
# enabled: [true/false] - Replace with specific image
# image: url-of-image - Images's url
custom_logo:
enabled: false
image:

# Code Highlight theme
# Available value:
# normal | night | night eighties | night blue | night bright
# https://github.com/chriskempson/tomorrow-theme
# 代码高亮主题设置
# 都长啥样自己点开上面的链接查看
highlight_theme: normal
# 注意要先在站点配置文件中设置
# 怎么设置参考本文 3.2 节


# ---------------------------------------------------------------
# Font Settings
# - Find fonts on Google Fonts (https://www.google.com/fonts)
# - All fonts set here will have the following styles:
# light, light italic, normal, normal italic, bold, bold italic
# - Be aware that setting too much fonts will cause site running slowly
# - Introduce in 5.0.1
# ---------------------------------------------------------------
# 字体设置,见本文 4.3 节
font:
enable: true

# Uri of fonts host. E.g. //fonts.googleapis.com (Default)
host: https://fonts.cat.net

# Font options:
# `external: true` will load this font family from `host` above.
# `family: Times New Roman`. Without any quotes.
# `size: xx`. Use `px` as unit.

# Global font settings used on <body> element.
global:
external: true
family: Lato
size:

# Font settings for Headlines (h1, h2, h3, h4, h5, h6).
# Fallback to `global` font settings.
headings:
external: true
family: Roboto Slab
size:

# Font settings for posts.
# Fallback to `global` font settings.
posts:
external: true
family:

# Font settings for Logo.
# Fallback to `global` font settings.
logo:
external: true
family:
size:

# Font settings for <code> and code blocks.
codes:
external: true
family: Roboto Mono
size:


# ---------------------------------------------------------------
# Third Party Services Settings
# ---------------------------------------------------------------

# MathJax Support
mathjax:
enable: false
per_page: false
cdn: //cdn.bootcss.com/mathjax/2.7.1/latest.js?config=TeX-AMS-MML_HTMLorMML

# Han Support docs: https://hanzi.pro/
# 汉字标准格式,没用过暂时不了解
han: false

# Swiftype Search API Key

# Baidu Analytics ID

# Duoshuo ShortName

# Disqus

# Hypercomments
# 我用的就是这种,特点是可以匿名评论,暂时还没有加入 GFW 名单
# https://www.hypercomments.com/
# 自己去网站用 Google 邮箱注册,有啥不懂请留言评论
# 建议你把 Quote(管理台右上角的 Settings 按钮,然后 Widget 里)关了
# 鼠标在一些段落上时,这个 Quote 会在后面显示一个图标
# 或者选中一段文字,会有……
hypercomments_id:

# changyan

# Valine.

# Support for youyan comments system.

# Support for LiveRe comments system.
# 来必力评论
# 参见教程:https://linan.blog/2017/LiveReCommentsSystem/
#livere_uid: your uid

# Gitment

# Baidu Share

# Share

# Google Webmaster tools verification setting
# See: https://www.google.com/webmasters/
# Google 站长工具校验
# 可以不用这种验证方式,直接先添加下面的 Google Analytics
# 然后用 Google Analytics 校验
#google_site_verification:

# Webmaster 是用来提交自己的文章链接给 Google
# 然后别人就有可能通过 Google 搜索到自己的博客
# 这个必须做,如果你的文章想被别人看到的话
# 教程查看本文 5.4 节

# Google Analytics
# 去 https://analytics.google.com 注册,自备梯子
# 目前国内网络环境也可以使用,教程查看本文 5.4 节
google_analytics:

# Bing Webmaster tools verification setting

# Yandex Webmaster tools verification setting

# CNZZ count

# Application Insights

# Make duoshuo show UA

# Post widgets & FB/VK comments settings.
# ---------------------------------------------------------------
# Facebook SDK Support.

# Facebook comments plugin

# VKontakte API Support.

# Star rating support to each article.
# To get your ID visit https://widgetpack.com
# 评分,教程见本文 5.6 节
rating:
enable: true
id:
color: f79533
# ---------------------------------------------------------------

# Show number of visitors to each article.
# You can visit https://leancloud.cn get AppID and AppKey.
# 可以显示每篇文章的阅读量
# 然后可以通过阅读量建立 TopX 页面,教程链接:
# https://notes.wanghao.work/2015-10-21-为NexT主题添加文章阅读量统计功能.html
leancloud_visitors:
enable: true
app_id:
app_key:

# Another tool to show number of visitors to each article.

# Show PV/UV of the website/page with busuanzi.
# Get more information on http://ibruce.info/2015/04/04/busuanzi/
# 不蒜子统计,用于在页脚显示总访客数和总浏览量,将 false 改为 true 就能直接使用
busuanzi_count:
# count values only if the other configs are false
enable: true
# custom uv span for the whole site
site_uv: true
site_uv_header: <i class="fa fa-user-circle-o"></i>
site_uv_footer:
# custom pv span for the whole site
site_pv: true
site_pv_header:
site_pv_footer: <i class="fa fa-eye"></i>
# custom pv span for one page only
# 页面浏览量,不建议开启,建议用上面的 leancloud_visitors
# 首先 leancloud 更稳定,其次 leancloud 便于管理
# 最后,可以利用 leancloud 的 api 建立 TopX 页面
page_pv: false
page_pv_header: <i class="fa fa-file-o"></i>
page_pv_footer:

# Tencent analytics ID

# Tencent MTA ID

# Enable baidu push
baidu_push: false

# Google Calendar

# Algolia Search

# Local search
# Dependencies: https://github.com/flashlab/hexo-generator-search
# 要安装插件才能使用,先进入站点文件夹根目录
# 然后:npm install hexo-generator-searchdb --save
local_search:
enable: true
# if auto, trigger search by changing input
# if manual, trigger search by pressing enter key or search button
trigger: auto
# show top n results per article, show all results by setting to -1
top_n_per_article: 1


# ---------------------------------------------------------------
# Tags Settings
# ---------------------------------------------------------------

# External URL with BASE64 encrypt & decrypt.
# Usage: {% exturl text url "title" %}
# Alias: {% extlink text url "title" %}
# 用法见:
# https://github.com/iissnan/hexo-theme-next/pull/1438
exturl: false

# Note tag (bs-callout).
# 主题的标签样式,有 note、label、tabs 三种
# 说明请查看本文 6.5 节
note:
style: flat
icons: true
border_radius: 3
light_bg_offset: 0

# Label tag.
label: true

# Tabs tag.
tabs:
enable: true
transition:
tabs: true
labels: true
border_radius: 0

#! ---------------------------------------------------------------
#! DO NOT EDIT THE FOLLOWING SETTINGS
#! UNLESS YOU KNOW WHAT YOU ARE DOING
#! ---------------------------------------------------------------

# Use velocity to animate everything.
motion:
enable: true
async: true
transition:
post_block: perspectiveLeftIn
post_header: fadeIn
post_body: fadeIn
coll_header: perspectiveLeftIn
# Only for Pisces | Gemini.
sidebar: slideUpIn

# Fancybox
# 查看图片的
fancybox: true

# [2017.08.27]
# 效果太差了,没能力自己造轮子,先关了

# [2017.11.17]
# 原因是版本太低,已有大佬提交 Pr:
# https://github.com/iissnan/hexo-theme-next/pull/1989
# 目前还未被 Merge,博主跟进中,实在不行手动更新
# 暂时的解决方法:
# 下面的 Script Vendors 的 fancybox 那
# 加上新版本的 CDN 地址

# Progress bar in the top during page loading.
# 页面顶部加载条
pace: true
pace_theme: pace-theme-flash

# Canvas-nest
# 动态背景,见本文 3.4 节
# 被我关了 [2017.07.01]
canvas_nest: false

# three_waves
three_waves: false

# canvas_lines
canvas_lines: false

# canvas_sphere
canvas_sphere: false

# Only fit scheme Pisces
# Canvas-ribbon
# size: The width of the ribbon.
# alpha: The transparency of the ribbon.
# zIndex: The display level of the ribbon.
canvas_ribbon:
enable: false
size: 300
alpha: 0.6
zIndex: -1

# Script Vendors.
# Set a CDN address for the vendor you want to customize.
# 相关内容用 CDN 地址取代,加速网站访问,注意版本尽可能要一致
vendors:
# Internal path prefix. Please do not edit it.
_internal: lib

# Internal version: 2.1.3
jquery: https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js

# Internal version: 2.1.5
# See: http://fancyapps.com/fancybox/
# 自定义 fancybox(暂时)
fancybox: https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.2.5/jquery.fancybox.min.js
fancybox_css: https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.2.5/jquery.fancybox.min.css

# Internal version: 1.0.6
# See: https://github.com/ftlabs/fastclick
fastclick: https://cdnjs.cloudflare.com/ajax/libs/fastclick/1.0.6/fastclick.min.js

# Internal version: 1.9.7
# See: https://github.com/tuupola/jquery_lazyload
lazyload: https://cdnjs.cloudflare.com/ajax/libs/jquery_lazyload/1.9.7/jquery.lazyload.min.js

# Internal version: 1.2.1
# See: http://VelocityJS.org
velocity: https://cdnjs.cloudflare.com/ajax/libs/velocity/1.2.1/velocity.min.js

# Internal version: 1.2.1
# See: http://VelocityJS.org
velocity_ui: https://cdnjs.cloudflare.com/ajax/libs/velocity/1.2.1/velocity.ui.min.js

# Internal version: 0.7.9
# See: https://faisalman.github.io/ua-parser-js/
ua_parser: https://cdnjs.cloudflare.com/ajax/libs/UAParser.js/0.7.9/ua-parser.min.js

# Internal version: 4.6.2
# See: http://fontawesome.io/
fontawesome: https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.css

# Internal version: 1.0.2
# See: https://github.com/HubSpot/pace
# Or use direct links below:
pace: //cdn.bootcss.com/pace/1.0.2/pace.min.js
pace_css: //cdn.bootcss.com/pace/1.0.2/themes/blue/pace-theme-flash.min.css

# Assets
css: css
js: js
images: images

# Theme version
version: 5.1.3

# 文章末尾添加“本文结束”标记,请勿直接添加,教程链接:
# http://shenzekun.cn/hexo的next主题个性化配置教程.html
# 见第 7 节,在每篇文章末尾统一添加“本文结束”标记
passage_end_tag:
enabled: true
0%