chore: update blog content and config

This commit is contained in:
Hermes Agent
2026-07-08 10:02:47 +08:00
parent 6d77de20ec
commit e021c4fba8
9 changed files with 255 additions and 44 deletions
+13 -3
View File
@@ -8,7 +8,8 @@
nav: nav:
logo: # Logo 图片 URL (留空则显示站点标题) logo: # Logo 图片 URL (留空则显示站点标题)
display_title: true # 是否显示站点标题 display_title: true # 是否显示站点标题
menu:
menu:
首页: / || fas fa-home 首页: / || fas fa-home
归档: /archives/ || fas fa-archive 归档: /archives/ || fas fa-archive
分类: /categories/ || fas fa-folder-open 分类: /categories/ || fas fa-folder-open
@@ -64,8 +65,17 @@ post:
copyright: true # 文章末尾显示版权信息 copyright: true # 文章末尾显示版权信息
# ==================== 搜索 ==================== # ==================== 搜索 ====================
local_search: search:
enable: true # 开启本地搜索(无需第三方服务) use: local_search
placeholder: 搜索文章
local_search:
preload: false
top_n_per_article: 1
unescape: false
pagination:
enable: false
hitsPerPage: 8
# ==================== 评论 ==================== # ==================== 评论 ====================
comments: comments:
+92 -35
View File
@@ -1,104 +1,161 @@
# Hexo Configuration # ============================================================
## Docs: https://hexo.io/docs/configuration.html # Hexo 全局配置文件
## Source: https://github.com/hexojs/hexo/ # 官方文档: https://hexo.io/docs/configuration.html
# 源码参考: https://github.com/hexojs/hexo/
# ============================================================
# Site # ==================== 站点基本信息 ====================
# 网站标题
title: 62117684535a5ba2 title: 62117684535a5ba2
# 网站副标题
subtitle: '' subtitle: ''
# 网站描述
description: 4e004e2a7528 Hexo 642d5efa7684535a5ba2 description: 4e004e2a7528 Hexo 642d5efa7684535a5ba2
# 网站关键词,多个关键词可用逗号分隔或写成数组
keywords: keywords:
# 作者名称
author: wa feng author: wa feng
# 网站语言
language: zh-CN language: zh-CN
# 时区,留空时通常使用系统默认时区
timezone: '' timezone: ''
# URL # ==================== 网站链接与文章链接格式 ====================
## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project' # 网站主地址,例如 https://example.com
url: https://blog.987119.xyz url: https://blog.987119.xyz
# 文章永久链接格式
permalink: :year/:month/:day/:title/ permalink: :year/:month/:day/:title/
# 永久链接的默认变量,可按需补充
permalink_defaults: permalink_defaults:
# 伪静态链接设置
pretty_urls: pretty_urls:
trailing_index: true # Set to false to remove trailing 'index.html' from permalinks # 设为 false 可移除链接结尾的 index.html
trailing_html: true # Set to false to remove trailing '.html' from permalinks trailing_index: true
# 设为 false 可移除链接结尾的 .html
trailing_html: true
# Directory # ==================== 目录结构 ====================
# 源文件目录
source_dir: source source_dir: source
# 生成后的静态文件目录
public_dir: public public_dir: public
# 标签页目录
tag_dir: tags tag_dir: tags
# 归档页目录
archive_dir: archives archive_dir: archives
# 分类页目录
category_dir: categories category_dir: categories
# 代码下载目录
code_dir: downloads/code code_dir: downloads/code
# 多语言目录
i18n_dir: :lang i18n_dir: :lang
# 跳过渲染的文件或目录,可写通配规则
skip_render: skip_render:
# Writing # ==================== 写作与渲染设置 ====================
new_post_name: :title.md # File name of new posts # 新文章默认文件名格式
new_post_name: :title.md # 新文章文件名格式
# 新文章默认布局
default_layout: post default_layout: post
titlecase: false # Transform title into titlecase # 是否把标题自动转成 Title Case
titlecase: false # 是否自动转换标题大小写
# 外部链接处理设置
external_link: external_link:
enable: true # Open external links in new tab # 是否让外链默认在新标签页打开
field: site # Apply to the whole site enable: true # 外链在新标签页打开
# 生效范围:site 表示全站,post 表示仅文章
field: site # 应用于全站
# 排除的域名或链接
exclude: '' exclude: ''
# 文件名大小写策略
# 0: 不修改,1: 转小写,2: 转大写
filename_case: 0 filename_case: 0
# 是否渲染草稿文章
render_drafts: false render_drafts: false
# 是否为每篇文章创建同名资源文件夹
post_asset_folder: false post_asset_folder: false
# 是否使用相对链接
relative_link: false relative_link: false
# 是否发布未来日期的文章
future: true future: true
# 代码高亮引擎,可选 highlight.js 或 prismjs
syntax_highlighter: highlight.js syntax_highlighter: highlight.js
# highlight.js 配置
highlight: highlight:
# 是否显示行号
line_number: true line_number: true
# 是否自动检测语言
auto_detect: false auto_detect: false
# Tab 替换内容
tab_replace: '' tab_replace: ''
# 是否自动包裹代码块
wrap: true wrap: true
# 是否使用 hljs 样式类
hljs: false hljs: false
# PrismJS 配置
prismjs: prismjs:
# 是否在渲染前预处理
preprocess: true preprocess: true
# 是否显示行号
line_number: true line_number: true
# Tab 替换内容
tab_replace: '' tab_replace: ''
# Home page setting # ==================== 首页设置 ====================
# path: Root path for your blogs index page. (default = '') # path: 博客首页路径,默认空字符串表示根路径
# per_page: Posts displayed per page. (0 = disable pagination) # per_page: 每页显示文章数,0 表示关闭分页
# order_by: Posts order. (Order by date descending by default) # order_by: 排序方式,默认按日期倒序
index_generator: index_generator:
path: '' path: ''
per_page: 10 per_page: 10
order_by: -date order_by: -date
# Category & Tag # ==================== 分类与标签 ====================
# 文章默认分类
default_category: uncategorized default_category: uncategorized
# 分类映射,可把旧分类名映射到新分类名
category_map: category_map:
# 标签映射,可把旧标签名映射到新标签名
tag_map: tag_map:
# Metadata elements # ==================== HTML 元数据 ====================
## https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta # 是否自动生成 meta generator 标签
meta_generator: true meta_generator: true
# Date / Time format # ==================== 日期与时间格式 ====================
## Hexo uses Moment.js to parse and display date # Hexo 使用 Moment.js 处理日期显示
## You can customize the date format as defined in # 日期格式参考: http://momentjs.com/docs/#/displaying/format/
## http://momentjs.com/docs/#/displaying/format/ # 文章日期显示格式
date_format: YYYY-MM-DD date_format: YYYY-MM-DD
# 时间显示格式
time_format: HH:mm:ss time_format: HH:mm:ss
## updated_option supports 'mtime', 'date', 'empty' # 更新时间取值方式:mtime / date / empty
updated_option: 'mtime' updated_option: 'mtime'
# Pagination # ==================== 分页设置 ====================
## Set per_page to 0 to disable pagination # 每页显示的文章数,设为 0 可关闭分页
per_page: 10 per_page: 10
# 分页目录名称
pagination_dir: page pagination_dir: page
# Include / Exclude file(s) # ==================== 文件包含/排除规则 ====================
## include:/exclude: options only apply to the 'source/' folder # include / exclude / ignore 仅对 source/ 目录生效
# 强制包含的文件
include: include:
# 排除处理的文件
exclude: exclude:
# 忽略监听或处理的文件
ignore: ignore:
# Extensions # ==================== 扩展配置 ====================
## Plugins: https://hexo.io/plugins/ # 当前主题名称
## Themes: https://hexo.io/themes/
theme: butterfly theme: butterfly
# Deployment # ==================== 部署配置 ====================
## Docs: https://hexo.io/docs/one-command-deployment # 一键部署配置,需配合对应部署插件使用
# 文档: https://hexo.io/docs/one-command-deployment
deploy: deploy:
# 部署方式,例如 git、sftp、rsync 等
type: '' type: ''
+104
View File
@@ -0,0 +1,104 @@
# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/
# Site
title: 62117684535a5ba2
subtitle: ''
description: 4e004e2a7528 Hexo 642d5efa7684535a5ba2
keywords:
author: wa feng
language: zh-CN
timezone: ''
# URL
## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project'
url: https://blog.987119.xyz
permalink: :year/:month/:day/:title/
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
# 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:
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
syntax_highlighter: highlight.js
highlight:
line_number: true
auto_detect: false
tab_replace: ''
wrap: true
hljs: false
prismjs:
preprocess: true
line_number: true
tab_replace: ''
# 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
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/
theme: butterfly
# Deployment
## Docs: https://hexo.io/docs/one-command-deployment
deploy:
type: ''
+10
View File
@@ -12,6 +12,7 @@
"hexo-generator-archive": "^2.0.0", "hexo-generator-archive": "^2.0.0",
"hexo-generator-category": "^2.0.0", "hexo-generator-category": "^2.0.0",
"hexo-generator-index": "^4.0.0", "hexo-generator-index": "^4.0.0",
"hexo-generator-searchdb": "^1.5.0",
"hexo-generator-tag": "^2.0.0", "hexo-generator-tag": "^2.0.0",
"hexo-renderer-ejs": "^2.0.0", "hexo-renderer-ejs": "^2.0.0",
"hexo-renderer-marked": "^7.0.0", "hexo-renderer-marked": "^7.0.0",
@@ -1397,6 +1398,15 @@
"node": ">=18" "node": ">=18"
} }
}, },
"node_modules/hexo-generator-searchdb": {
"version": "1.5.0",
"resolved": "https://registry.npmjs.org/hexo-generator-searchdb/-/hexo-generator-searchdb-1.5.0.tgz",
"integrity": "sha512-d0b5SueDxJimTFaHpPg430FQFx7DtMkmEIHo0UTOjXWRy+eDqNSp1CuS04P7fWzMnH2h+aQc6O9D2yY+3sdAUg==",
"license": "MIT",
"dependencies": {
"nunjucks": "^3.2.2"
}
},
"node_modules/hexo-generator-tag": { "node_modules/hexo-generator-tag": {
"version": "2.0.0", "version": "2.0.0",
"resolved": "https://registry.npmjs.org/hexo-generator-tag/-/hexo-generator-tag-2.0.0.tgz", "resolved": "https://registry.npmjs.org/hexo-generator-tag/-/hexo-generator-tag-2.0.0.tgz",
+1
View File
@@ -16,6 +16,7 @@
"hexo-generator-archive": "^2.0.0", "hexo-generator-archive": "^2.0.0",
"hexo-generator-category": "^2.0.0", "hexo-generator-category": "^2.0.0",
"hexo-generator-index": "^4.0.0", "hexo-generator-index": "^4.0.0",
"hexo-generator-searchdb": "^1.5.0",
"hexo-generator-tag": "^2.0.0", "hexo-generator-tag": "^2.0.0",
"hexo-renderer-ejs": "^2.0.0", "hexo-renderer-ejs": "^2.0.0",
"hexo-renderer-marked": "^7.0.0", "hexo-renderer-marked": "^7.0.0",
+6
View File
@@ -0,0 +1,6 @@
---
title: 关于
date: 2026-07-08 00:00:00
layout: about
---
这是关于页面。
+6
View File
@@ -0,0 +1,6 @@
---
title: 分类
date: 2026-07-08 00:00:00
type: categories
layout: categories
---
+11
View File
@@ -145,3 +145,14 @@ html:not([data-theme="dark"]) #post-info #post-meta i {
margin-bottom: 10px; margin-bottom: 10px;
} }
} }
/* ==================== 文章标题栏字号放大 30% ==================== */
#post-info .post-title {
font-size: 3.25em !important;
}
@media screen and (max-width: 768px) {
#post-info .post-title {
font-size: 2.73em !important;
}
}
+6
View File
@@ -0,0 +1,6 @@
---
title: 标签
date: 2026-07-08 00:00:00
type: tags
layout: tags
---