1 Star 2 Fork 0

crysw / hexo-blog-crystal

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
_config.yml 7.00 KB
一键复制 编辑 原始数据 按行查看 历史
crysw 提交于 2022-08-16 22:58 . add post
# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/
# Site
title: Crysw's Blog #网站标题
subtitle: be yourself , be better #网站副标题
description: 本网站是个人技术爱好,分享经验,记录生活的平台 #网站描述description 主要用于5E0,告诉搜索引擎一个关于您站点的简单描述
keywords: [Crysw的博客,Hexo,个人博客,matery,hexo-theme-matery,Java] #网站的关键词。使用半角逗号“,”分隔多个关键词
author: Crysw #您的名字
language: zh-CN #网站使用的语言。建议修改为zh-CN
timezone: Asia/Shanghai #网站时区。Hexo默认使用您电脑的时区。
# URL
## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project'
## 自定义域名, 目前是部署到gitHub上面解析自定义域名的, gitee个人版不支持自定义域名
#url: https://www.crystalblog.xyz
## gitee
url: https://wang-qz.gitee.io/crystal-blog
# github
#url: https://wang-qz.github.io/
##permalink: :year/:month/:day/:title/
## 修改 permalink 支持中文链接生成静态短链接 npm install hexo-abbrlink --save
#permalink: :year/:month:day:abbrlink.html
## 优化文章链接结构,方便seo
permalink: :year:month:day:abbrlink.html
abbrlink:
alg: crc16 #算法选项:crc16丨crc32
rep: dec #输出进制:dec为十进制,hex为十六进制
permalink_defaults:
pretty_urls:
trailing_index: true # Set to false to remove trailing 'index.html' from permalinks
trailing_html: true # Set to false to remove trailing '.html' from permalinks
## 支持中文链接生成中文拼音链接 npm i hexo-permalink-pinyin --save
permalink_pinyin:
enable: true
separator: '-' # default: '-'
# Directory
source_dir: source
public_dir: public
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
# 其意思为在对文件进行渲染时跳过aboutme文件下的所有文件
skip_render:
- aboutme/*
- daohang/*
- .git/*
# Writing
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link:
enable: true # Open external links in new tab
field: site # Apply to the whole site
exclude: ''
filename_case: 0
render_drafts: false
post_asset_folder: false
relative_link: false
future: true
## 修改 highlight.enable 的值为 false
highlight: ## 代码块的设置
enable: false #开启代码块高亮
line_number: true #如果未指定语言,则启用自动检测
auto_detect: false #显示行数
tab_replace: '' #用n个空格替换tabs;如果值为空,则不会替换tabs
wrap: true
hljs: false
prismjs:
enable: false
preprocess: true
line_number: true
tab_replace: ''
## 新增hexo-prism-plugin插件配置,来做代码高亮 npm i -S hexo-prism-plugin
# 关闭原有的代码高亮,使用自己的
prism_plugin:
mode: 'preprocess' # realtime/preprocess
theme: 'tomorrow'
line_number: false # default false
custom_css:
## 新增hexo-generator-search插件配置, 用来做内容搜索
## npm install hexo-generator-search --save
search:
path: search.xml
field: post
## 添加 emoji 表情支持 npm install hexo-filter-github-emojis --save
githubEmojis:
enable: true
className: github-emoji
inject: true
styles:
customEmojis:
## 添加动画live2d模块 npm install --save hexo-helper-live2d
## 下载动画人物 npm install --save live2d-widget-model-shizuku 课桌女孩
## 下载动画人物 npm install --save live2d-widget-model-hibiki 御姐
## 下载动画人物 npm install --save live2d-widget-model-wanko 狗狗
## 下载动画人物 npm install --save live2d-widget-model-haruto 海军服女孩
## 下载动画人物 npm install --save live2d-widget-model-miku 萝莉
live2d:
enable: true
scriptFrom: local # 默认
pluginRootPath: live2dw/ # 插件在站点上的根目录(相对路径)
pluginJsPath: lib/ # 脚本文件相对与插件根目录路径
pluginModelPath: assets/ # 模型文件相对与插件根目录路径
tagMode: false # 标签模式, 是否仅替换 live2d tag标签而非插入到所有页面中
debug: false # 调试, 是否在控制台输出日志
model:
use: live2d-widget-model-miku
display:
position: right #动画位置
width: 150
height: 190
# 位置配置,这个在左侧边栏位置很居中
hOffset: 50 # 调节水平位置
vOffset: -5 # 调节垂直位置
mobile:
show: false # 是否在移动设备上显示
scale: 0.5 # 移动设备上的缩放
react:
opacityDefault: 0.7
opacityOnHover: 0.8
## RSS订阅配置 npm install hexo-generator-feed --save
feed:
type: atom
path: atom.xml
limit: 20
hub:
content:
content_limit: 140
content_limit_delim: ' '
order_by: -date
# 自动生成sitemap
sitemap:
path: sitemap.xml
baidusitemap:
path: baidusitemap.xml
# hexo-neat 优化提速插件
# 博文压缩
neat_enable: true
# 压缩html
neat_html:
enable: true
exclude:
# - '**/*.md'
# 压缩css
neat_css:
enable: true
exclude:
- '**/*.min.css'
# 压缩js
neat_js:
enable: true
mangle: true
output:
compress:
exclude:
- '**/*.min.js'
- '**/jquery.fancybox.pack.js'
- '**/**/instantpage.js'
- '**/index.js'
- '**/matery.js'
# hexo-baidu-url-submit 百度主动推送
baidu_url_submit:
count: 80 # 提交最新的一个链接
host: https://crystalblog.xyz/ # 在百度站长平台中注册的域名
token: lvWvwL4joF3BGTgN # 请注意这是您的秘钥, 所以请不要把博客源代码发布在公众仓库里!
path: baidu_urls.txt # 文本文档的地址, 新链接会保存在此文本文档里
# 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: 12
order_by: -date
# Category & Tag
default_category: uncategorized
category_map:
tag_map:
# Metadata elements
## https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
meta_generator: true
# 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
## updated_option supports 'mtime', 'date', 'empty'
updated_option: 'mtime'
# Pagination
## Set per_page to 0 to disable pagination
per_page: 10
pagination_dir: page
# Include / Exclude file(s)
## include:/exclude: options only apply to the 'source/' folder
include:
exclude:
ignore:
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
## landscape matery next butterfly sakura yilia
theme: hexo-theme-matery
# Deployment
## Docs: https://hexo.io/docs/one-command-deployment
##deploy:
## type: ''
deploy:
- type: git
repository: git@gitee.com:wang-qz/crystal-blog.git
# repository: git@github.com:wang-qz/wang-qz.github.io.git
branch: master
- type: baidu_url_submitter
1
https://gitee.com/wang-qz/hexo-blog-crystal.git
git@gitee.com:wang-qz/hexo-blog-crystal.git
wang-qz
hexo-blog-crystal
hexo-blog-crystal
master

搜索帮助