You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
#
Default option (when the visitor switches manually, the default mode is no longer followed), choosing `auto` will give priority to prefers-color-scheme, and then enter the dark mode from 18:00 to 6:00 in the visitor's local time
#
Options: auto | light | dark
default
:
auto
#
主题颜色配置,其他不生效的地方请使用自定义 css 解决,配色可以在下方链接中获得启发
#
Theme color, please use custom CSS to solve other colors, color schema can be inspired by the links below
#
Specify the path of your custom js file, support list. The path is relative to the source directory, such as `/js/custom.js` corresponding to the directory `source/js/custom.js`
custom_js
:
#
指定自定义 .css 文件路径,用法和 custom_js 相同
#
The usage is the same as custom_js
custom_css
:
#
网页访问统计
#
Analysis of website visitors
web_analytics
:
enable
:
false
#
遵循访客浏览器"请勿追踪"的设置,如果开启则不统计其访问
#
Follow the "Do Not Track" setting of the visitor's browser
#
If you only want to tracker to specific domains you can fill in this field, multiple domain names are separated by commas, which can avoid tracker localhost
domains
:
#
用于统计 PV UV 的开始时间,格式为 "YYYY-MM-DD"
#
statistics on the start time, the format is "YYYY-MM-DD"
start_time
:
2024-01-01
#
新建一个 umami viewOnly 用户,然后通过 login api 获取该用户 token
#
create an umami viewOnly user, and then get user token through the login api
token
:
#
填写 umami 部署的服务器地址,如 "https://umami.example.com"
#
server url of umami deployment, such as "https://umami.example.com"
api_server
:
#
Canonical 用于向 Google 搜索指定规范网址,开启前确保 hexo _config.yml 中配置 `url: http://yourdomain.com`
#
Canonical, to specify a canonical URL for Google Search, need to set up `url: http://yourdomain.com` in hexo _config.yml
#
Icon library, which includes many social icons, does not include those theme dependent, so your can modify link by yourself. See: https://hexo.fluid-dev.com/docs/en/icon/
#
Navigation bar menu. `key` is used to associate languages/*.yml. If there is no association, the value of `key` itself will be displayed; if `icon` is a css class, it can be omitted; adding `name` can force the display of the specified name
#
Search feature, based on hexo-generator-search. If you have installed other search plugins, please disable this feature to avoid generating redundant index files
search
:
enable
:
true
#
搜索索引文件的路径,可以是相对路径或外站的绝对路径
#
Path for search index file, it can be a relative path or an absolute path
path
:
/local-search.xml
#
文件生成在本地的位置,必须是相对路径
#
The location where the index file is generated locally, it must be a relative location
generate_path
:
/local-search.xml
#
搜索的范围
#
Search field
#
Options: post | page | all
field
:
post
#
搜索是否扫描正文
#
If true, search will scan the post content
content
:
true
#
首屏图片的相关配置
#
Config of the big image on the first screen
banner
:
#
视差滚动,图片与板块会随着屏幕滚动产生视差效果
#
Scrolling parallax
parallax
:
true
#
图片最小的宽高比,以免图片两边被过度裁剪,适用于移动端竖屏时,如需关闭设为 0
#
Minimum ratio of width to height, applicable to the vertical screen of mobile device, if you need to close it, set it to 0
width_height_ratio
:
1.0
#
向下滚动的箭头
#
Scroll down arrow
scroll_down_arrow
:
enable
:
true
#
头图高度不小于指定比例,才显示箭头
#
Only the height of the banner image is greater than the ratio, the arrow is displayed
#
Data source. If use leancloud, umami, you need to set the parameter in `web_analytics`
#
Options: busuanzi | leancloud | umami
source
:
"
busuanzi
"
#
国内大陆服务器的备案信息
#
For Chinese mainland website policy, other areas keep disable
beian
:
enable
:
false
#
ICP证号
icp_text
:
京ICP证123456号
#
公安备案号,不填则只显示ICP
police_text
:
京公网安备12345678号
#
公安备案的编号,用于URL跳转查询
police_code
:
12345678
#
公安备案的图片. 为空时不显示备案图片
police_icon
:
/img/police_beian.png
#
---------------------------
#
首页
#
Home Page
#
---------------------------
index
:
#
首页 Banner 头图,可以是相对路径或绝对路径,以下相同
#
Path of Banner image, can be a relative path or an absolute path, the same on other pages
banner_img
:
/img/default.png
#
头图高度,屏幕百分比
#
Height ratio of banner image
#
Available: 0 - 100
banner_img_height
:
100
#
头图黑色蒙版的不透明度,available: 0 - 1.0,1 是完全不透明
#
Opacity of the banner mask, 1.0 is completely opaque
#
Available: 0 - 1.0
banner_mask_alpha
:
0.3
#
首页副标题的独立设置
#
Independent config of home page subtitle
slogan
:
enable
:
true
#
为空则按 hexo config.subtitle 显示
#
If empty, text based on `subtitle` in hexo config
text
:
"
An elegant Material-Design theme for Hexo
"
#
通过 API 接口作为首页副标题的内容,必须返回的是 JSON 格式,如果请求失败则按 text 字段显示,该功能必须先开启 typing 打字机功能
#
Subtitle of the homepage through the API, must be returned a JSON. If the request fails, it will be displayed in `text` value. This feature must first enable the typing animation
#
The value field of the string obtained from the response. For example, the response content is {"data": {"author": "fluid", "content": "An elegant theme"}}, the expected `keys: ['data','content']`; if the return is a list, the first item is automatically selected
keys
:
[]
#
自动截取文章摘要
#
Auto extract post
auto_excerpt
:
enable
:
true
#
打开文章的标签方式
#
The browser tag to open the post
#
Available: _blank | _self
post_url_target
:
_self
#
是否显示文章信息(时间、分类、标签)
#
Meta information of post
post_meta
:
date
:
true
category
:
true
tag
:
true
#
文章通过 sticky 排序后,在首页文章标题前显示图标
#
If the posts are sorted by `sticky`, an icon is displayed in front of the post title
#
Average word length (chars count in word), ZH ≈ 2, EN ≈ 5
awl
:
2
#
每分钟阅读字数,如果大部分是技术文章可适度调低
#
Words per minute
wpm
:
60
#
浏览量计数
#
Number of visits
views
:
enable
:
false
#
统计数据来源
#
Data Source
#
Options: busuanzi | leancloud | umami
source
:
"
busuanzi
"
#
在文章开头显示文章更新时间,该时间默认是 md 文件更新时间,可通过 front-matter 中 `updated` 手动指定(和 date 一样格式)
#
Update date is displayed at the beginning of the post. The default date is the update date of the md file, which can be manually specified by `updated` in front-matter (same format as date)
#
The image url replacement when zooming, the feature can be used to replace the compressed image to the original image, eg: ['-slim', ''] removes `-slim` from the image url when zooming; if you want to use regular, use prefix `re:`, eg: ['re:\\d{3,4}\\/\\d{3,4}\\/','']
#
Support footnote syntax, footnotes will be generated at the bottom of the post page. If the Markdown renderer itself supports it, please disable it, otherwise it may conflict
#
More icons can be found from https://hexo.fluid-dev.com/docs/en/icon/ `class` is the css class of the icon. If adding `qrcode`, the icon is no longer a link, but a hovering QR code