2021-02-19 23:33:19 +08:00
|
|
|
|
######## Stellar info ########
|
|
|
|
|
stellar:
|
2024-01-22 12:20:28 +08:00
|
|
|
|
version: '1.26.2'
|
2021-02-21 20:53:49 +08:00
|
|
|
|
homepage: 'https://xaoxuu.com/wiki/stellar/'
|
|
|
|
|
repo: 'https://github.com/xaoxuu/hexo-theme-stellar'
|
2021-02-21 21:31:43 +08:00
|
|
|
|
cdn_css: # Use cdn links instead of /css/main.css
|
|
|
|
|
cdn_js: # Use cdn links instead of /js/main.js
|
2021-02-19 23:33:19 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
######## head tags ########
|
2024-01-04 13:39:50 +08:00
|
|
|
|
preconnect:
|
|
|
|
|
# - https://gcore.jsdelivr.net
|
|
|
|
|
# - https://unpkg.com
|
2024-01-19 01:05:44 +08:00
|
|
|
|
# - https://cdn.bootcdn.net
|
2024-01-04 13:39:50 +08:00
|
|
|
|
|
2021-02-21 03:13:21 +08:00
|
|
|
|
open_graph:
|
|
|
|
|
enable: true
|
|
|
|
|
twitter_id: # for open_graph meta
|
2021-02-19 23:33:19 +08:00
|
|
|
|
|
2024-01-14 17:04:00 +08:00
|
|
|
|
|
|
|
|
|
######## Sidebar ########
|
2024-01-14 18:50:15 +08:00
|
|
|
|
# 左上角显示的 logo 区域,包含图标、大标题、副标题
|
2024-01-14 17:04:00 +08:00
|
|
|
|
logo:
|
2024-01-17 00:27:48 +08:00
|
|
|
|
avatar: '[${config.avatar}](/about/)' # you can set avatar link in _config.yml or '[https://xxx.png](/about/)'
|
|
|
|
|
title: '[${config.title}](/)' # you can set html tag like: '[<img no-lazy height="32px" src="xxx"/>](/)'
|
2024-01-14 18:50:15 +08:00
|
|
|
|
subtitle: '' # '文字1 | 文字2' (鼠标放上去会切换到文字2)
|
2024-01-14 17:04:00 +08:00
|
|
|
|
|
2024-01-14 18:50:15 +08:00
|
|
|
|
# 侧边栏主功能导航菜单
|
2024-01-17 23:39:14 +08:00
|
|
|
|
menubar:
|
|
|
|
|
columns: 4 # 一行多少个
|
|
|
|
|
items: # 可按照自己需求增加,符合以下格式即可
|
2024-01-19 13:51:55 +08:00
|
|
|
|
# id: 页面中高亮的 menu_id
|
|
|
|
|
# theme: 高亮时的颜色,仅 svg 中 fill="currentColor" 时有效
|
|
|
|
|
# icon: 支持 svg/img 标签,可以定义在 icons.yml 文件中,也支持外部图片的 URL
|
|
|
|
|
# title: 标题
|
|
|
|
|
# url: 点击跳转到哪,支持相对路径和绝对路径
|
2024-01-19 13:59:28 +08:00
|
|
|
|
# - id: post
|
|
|
|
|
# theme: '#1BCDFC'
|
|
|
|
|
# icon: solar:documents-bold-duotone
|
|
|
|
|
# title: 博客
|
|
|
|
|
# url: /
|
|
|
|
|
# - id: wiki
|
|
|
|
|
# theme: '#3DC550'
|
|
|
|
|
# icon: solar:notebook-bookmark-bold-duotone
|
|
|
|
|
# title: 文档
|
|
|
|
|
# url: /wiki/
|
|
|
|
|
# - id: explore
|
|
|
|
|
# theme: '#FA6400'
|
|
|
|
|
# icon: solar:planet-bold-duotone
|
|
|
|
|
# title: 探索
|
|
|
|
|
# url: /explore/
|
|
|
|
|
# - id: social
|
|
|
|
|
# theme: '#F44336'
|
|
|
|
|
# icon: solar:chat-square-like-bold-duotone
|
|
|
|
|
# title: 社交
|
|
|
|
|
# url: /friends/
|
2024-01-14 17:04:00 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
######## Main ########
|
2024-01-14 16:42:20 +08:00
|
|
|
|
# 站点主结构树
|
2024-01-14 17:21:19 +08:00
|
|
|
|
site_tree:
|
2024-01-20 01:51:09 +08:00
|
|
|
|
# -- 列表类页面 -- #
|
2024-01-14 16:42:20 +08:00
|
|
|
|
# 主页配置
|
|
|
|
|
home:
|
2024-01-20 01:51:09 +08:00
|
|
|
|
sidebar: welcome, recent, timeline
|
|
|
|
|
# 博客列表页配置
|
|
|
|
|
index_blog:
|
2024-01-14 16:42:20 +08:00
|
|
|
|
base_dir: blog # 只影响自动生成的页面路径
|
|
|
|
|
menu_id: post # 未在 front-matter 中指定 menu_id 时,layout 为 post 的页面默认使用这里配置的 menu_id
|
2024-01-20 01:51:09 +08:00
|
|
|
|
sidebar: welcome, recent, timeline # for categories/tags/archives
|
2024-01-14 16:42:20 +08:00
|
|
|
|
nav_tabs: # 近期发布 分类 标签 专栏 归档 and ...
|
|
|
|
|
# '朋友文章': /friends/rss/
|
2024-01-20 01:51:09 +08:00
|
|
|
|
# 博客专栏列表页配置
|
|
|
|
|
index_topic:
|
|
|
|
|
base_dir: topic # 只影响自动生成的页面路径
|
|
|
|
|
menu_id: post # 未在 front-matter 中指定 menu_id 时,layout 为 topic 的页面默认使用这里配置的 menu_id
|
|
|
|
|
# 文档列表页配置
|
|
|
|
|
index_wiki:
|
|
|
|
|
base_dir: wiki # 只影响自动生成的页面路径
|
|
|
|
|
menu_id: wiki # 未在 front-matter 中指定 menu_id 时,layout 为 wiki 的页面默认使用这里配置的 menu_id
|
|
|
|
|
sidebar: toc, ghissues, related, recent # for wiki
|
|
|
|
|
nav_tabs:
|
|
|
|
|
# 'more': https://github.com/xaoxuu
|
|
|
|
|
# -- 内容类页面 -- #
|
|
|
|
|
# 博客文章内页配置
|
2024-01-14 16:42:20 +08:00
|
|
|
|
post:
|
|
|
|
|
menu_id: post # 未在 front-matter 中指定 menu_id 时,layout 为 post 的页面默认使用这里配置的 menu_id
|
2024-01-17 00:27:48 +08:00
|
|
|
|
sidebar: toc, related, ghrepo, ghissues, recent # for pages using 'layout:post'
|
2024-01-20 01:51:09 +08:00
|
|
|
|
# 博客专栏文章内页配置
|
2024-01-14 16:42:20 +08:00
|
|
|
|
topic:
|
2024-01-20 01:51:09 +08:00
|
|
|
|
menu_id: post
|
|
|
|
|
# 文档内页配置
|
2024-01-14 16:42:20 +08:00
|
|
|
|
wiki:
|
|
|
|
|
menu_id: wiki # 未在 front-matter 中指定 menu_id 时,layout 为 wiki 的页面默认使用这里配置的 menu_id
|
2024-01-17 00:27:48 +08:00
|
|
|
|
sidebar: toc, ghissues, related, recent # for wiki
|
2024-01-14 16:42:20 +08:00
|
|
|
|
# 作者信息配置
|
|
|
|
|
author:
|
|
|
|
|
base_dir: author # 只影响自动生成的页面路径
|
|
|
|
|
menu_id: post
|
2024-01-17 00:27:48 +08:00
|
|
|
|
sidebar: recent, timeline
|
2024-01-14 16:42:20 +08:00
|
|
|
|
# 错误页配置
|
|
|
|
|
error_page:
|
|
|
|
|
menu_id: post
|
|
|
|
|
'404': '/404.html'
|
2024-01-17 00:27:48 +08:00
|
|
|
|
sidebar: recent, timeline
|
2024-01-14 16:42:20 +08:00
|
|
|
|
# 其它自定义页面配置 layout: page
|
|
|
|
|
page:
|
2024-01-20 01:51:09 +08:00
|
|
|
|
sidebar: toc, recent, timeline
|
2021-02-19 23:33:19 +08:00
|
|
|
|
|
|
|
|
|
|
2021-08-28 13:08:53 +08:00
|
|
|
|
|
2021-02-19 23:33:19 +08:00
|
|
|
|
######## Article ########
|
|
|
|
|
article:
|
2024-01-18 22:11:58 +08:00
|
|
|
|
# 文章类型,决定布局风格,可以在 front-matter/topic/wiki 中覆盖此参数
|
|
|
|
|
type: tech # tech: 默认技术类文章, story: 图文类文章,文字和段落间增距大
|
|
|
|
|
# 缩进两个文字宽度,适合文字类博客,可以在 front-matter/topic/wiki 中覆盖此参数
|
|
|
|
|
indent: # true / false
|
2022-06-14 20:05:49 +08:00
|
|
|
|
# 如果没有指定封面,是否根据 tags 作为关键词搜索封面图片?
|
2021-08-23 23:47:12 +08:00
|
|
|
|
auto_cover: false # search from https://source.unsplash.com/
|
2024-01-11 22:03:17 +08:00
|
|
|
|
# 封面图宽高比
|
|
|
|
|
cover_ratio: 2.4
|
2022-06-14 20:05:49 +08:00
|
|
|
|
# 如果没有指定横幅,是否根据 tags 作为关键词搜索横幅图片?
|
|
|
|
|
auto_banner: false # search from https://source.unsplash.com/
|
2021-02-19 23:33:19 +08:00
|
|
|
|
# 如果没有指定 excerpt 和 description,将自动取多长的内容作为文章摘要?
|
|
|
|
|
auto_excerpt: 200
|
2021-02-23 21:09:49 +08:00
|
|
|
|
# 分类颜色
|
|
|
|
|
category_color:
|
2022-11-22 23:08:30 +08:00
|
|
|
|
'探索号': '#f44336'
|
2021-02-25 00:05:23 +08:00
|
|
|
|
# 文章许可协议
|
2022-11-23 23:17:24 +08:00
|
|
|
|
license: '本文采用 [署名-非商业性使用-相同方式共享 4.0 国际](https://creativecommons.org/licenses/by-nc-sa/4.0/) 许可协议,转载请注明出处。'
|
2021-02-25 00:05:23 +08:00
|
|
|
|
# 分享
|
2021-03-01 23:24:57 +08:00
|
|
|
|
share: # [wechat, weibo, email, link]
|
2021-02-19 23:33:19 +08:00
|
|
|
|
# 相关文章,需要安装插件 (for layout: post)
|
|
|
|
|
# npm i hexo-related-popular-posts
|
|
|
|
|
related_posts:
|
|
|
|
|
enable: false
|
|
|
|
|
max_count: 5
|
2021-07-25 16:44:55 +08:00
|
|
|
|
|
2022-11-27 17:16:38 +08:00
|
|
|
|
search:
|
2022-11-28 23:07:50 +08:00
|
|
|
|
service: local_search # local_search, todo...
|
2022-11-29 21:54:15 +08:00
|
|
|
|
local_search: # 在 front-matter 中设置 indexing:false 来避免被搜索索引
|
2022-11-28 23:07:50 +08:00
|
|
|
|
field: all # post, page, all
|
2022-11-29 21:54:15 +08:00
|
|
|
|
path: /search.json # 搜索文件存放位置
|
|
|
|
|
content: true # 是否搜索内容
|
2023-02-12 17:44:30 +08:00
|
|
|
|
|
2022-11-27 17:16:38 +08:00
|
|
|
|
|
2021-02-19 23:33:19 +08:00
|
|
|
|
######## Comments ########
|
|
|
|
|
comments:
|
2022-12-11 14:33:10 +08:00
|
|
|
|
service: # beaudar, utterances, giscus, twikoo, waline, artalk
|
2021-07-23 12:10:24 +08:00
|
|
|
|
# beaudar
|
|
|
|
|
# https://beaudar.lipk.org/
|
|
|
|
|
beaudar:
|
|
|
|
|
repo: xxx/xxx
|
|
|
|
|
issue-term: pathname
|
|
|
|
|
issue-number:
|
|
|
|
|
theme: preferred-color-scheme
|
2021-07-23 23:44:25 +08:00
|
|
|
|
label:
|
2021-07-23 12:10:24 +08:00
|
|
|
|
input-position: top # top/bottom 评论框位置
|
|
|
|
|
comment-order: desc # desc 排序
|
|
|
|
|
keep-theme: # true/false
|
2021-07-23 23:44:25 +08:00
|
|
|
|
loading: false
|
|
|
|
|
branch: main
|
2021-02-19 23:33:19 +08:00
|
|
|
|
# utterances
|
|
|
|
|
# https://utteranc.es/
|
|
|
|
|
utterances:
|
|
|
|
|
repo: xxx/xxx
|
|
|
|
|
issue-term: pathname
|
|
|
|
|
issue-number:
|
2021-07-23 12:10:24 +08:00
|
|
|
|
theme: preferred-color-scheme
|
2021-07-23 23:44:25 +08:00
|
|
|
|
label:
|
2022-08-28 19:54:34 +08:00
|
|
|
|
# giscus
|
|
|
|
|
# https://giscus.app/zh-CN
|
|
|
|
|
giscus:
|
2024-01-02 12:55:12 +08:00
|
|
|
|
src: https://giscus.app/client.js
|
2022-08-28 19:54:34 +08:00
|
|
|
|
data-repo: xxx/xxx # [在此输入仓库]
|
|
|
|
|
data-repo-id: # [在此输入仓库 ID]
|
|
|
|
|
data-category: # [在此输入分类名]
|
|
|
|
|
data-category-id:
|
|
|
|
|
data-mapping: pathname
|
|
|
|
|
data-strict: 0
|
|
|
|
|
data-reactions-enabled: 1
|
|
|
|
|
data-emit-metadata: 0
|
|
|
|
|
data-input-position: top # top, bottom
|
|
|
|
|
data-theme: preferred_color_scheme
|
|
|
|
|
data-lang: zh-CN
|
|
|
|
|
data-loading: lazy
|
|
|
|
|
crossorigin: anonymous
|
|
|
|
|
|
2021-07-18 10:59:37 +08:00
|
|
|
|
# Twikoo
|
|
|
|
|
# https://twikoo.js.org/
|
|
|
|
|
twikoo:
|
2022-12-20 00:09:34 +08:00
|
|
|
|
js: https://gcore.jsdelivr.net/npm/twikoo@1.6.8/dist/twikoo.all.min.js # 建议锁定版本
|
2021-07-18 10:59:37 +08:00
|
|
|
|
envId: https://xxx # vercel函数
|
2023-02-12 17:44:30 +08:00
|
|
|
|
|
2022-12-11 14:33:10 +08:00
|
|
|
|
# Waline
|
|
|
|
|
# https://waline.js.org/
|
2022-05-18 20:25:53 +08:00
|
|
|
|
waline:
|
2022-12-20 00:09:34 +08:00
|
|
|
|
js: https://unpkg.com/@waline/client@2.14.1/dist/waline.js
|
|
|
|
|
css: https://unpkg.com/@waline/client@2.14.1/dist/waline.css
|
2022-05-18 20:25:53 +08:00
|
|
|
|
# Waline server address url, you should set this to your own link
|
2022-06-07 13:19:56 +08:00
|
|
|
|
serverURL:
|
2022-05-18 20:25:53 +08:00
|
|
|
|
# If false, comment count will only be displayed in post page, not in home page
|
|
|
|
|
commentCount: true
|
|
|
|
|
# Pageviews count, Note: You should not enable both `waline.pageview` and `leancloud_visitors`.
|
|
|
|
|
pageview: false
|
|
|
|
|
# Custom emoji
|
|
|
|
|
# emoji:
|
2022-10-08 17:03:12 +08:00
|
|
|
|
# - https://unpkg.com/@waline/emojis@1.1.0/weibo
|
|
|
|
|
# - https://unpkg.com/@waline/emojis@1.1.0/alus
|
|
|
|
|
# - https://unpkg.com/@waline/emojis@1.1.0/bilibili
|
|
|
|
|
# - https://unpkg.com/@waline/emojis@1.1.0/qq
|
|
|
|
|
# - https://unpkg.com/@waline/emojis@1.1.0/tieba
|
|
|
|
|
# - https://unpkg.com/@waline/emojis@1.1.0/tw-emoji
|
|
|
|
|
# - https://unpkg.com/@waline/emojis@1.1.0/bmoji
|
2023-01-12 14:00:56 +08:00
|
|
|
|
# 设置自己的图床服务,替换默认的 Base 64 编码嵌入(有体积大小限制),在评论中上传图片更加方便
|
|
|
|
|
# imageUploader:
|
|
|
|
|
# 适配了兰空图床V1、V2版本
|
|
|
|
|
# 以兰空图床V1为例,下列填写内容为:
|
|
|
|
|
# fileName: file
|
|
|
|
|
# tokenName: Authorization
|
2023-01-28 00:54:46 +08:00
|
|
|
|
# api: https://xxxxxx/api/v1/upload
|
2023-01-12 14:00:56 +08:00
|
|
|
|
# token: Bearer xxxxxxxxxxxxxx
|
|
|
|
|
# resp: data.links.url
|
|
|
|
|
# 以兰空图床V2为例,下列填写内容为:
|
|
|
|
|
# fileName: image
|
|
|
|
|
# tokenName: token
|
2023-01-28 00:54:46 +08:00
|
|
|
|
# api: https://xxxxxx/api/upload
|
2023-01-12 14:00:56 +08:00
|
|
|
|
# token: xxxxxxxxxxxxxx
|
|
|
|
|
# resp: data.url
|
|
|
|
|
# fileName: # 根据版本二选一
|
|
|
|
|
# tokenName: # 根据版本二选一
|
|
|
|
|
# api: # 图床 api 地址
|
|
|
|
|
# token: # 图床验证
|
|
|
|
|
# resp: # 图片地址返回值的字段
|
2023-02-12 17:44:30 +08:00
|
|
|
|
|
2022-12-11 14:33:10 +08:00
|
|
|
|
# Artalk
|
|
|
|
|
# https://artalk.js.org/
|
|
|
|
|
artalk:
|
2023-12-30 12:21:01 +08:00
|
|
|
|
css: https://unpkg.com/artalk@2.7/dist/Artalk.css
|
|
|
|
|
js: https://unpkg.com/artalk@2.7/dist/Artalk.js
|
2022-12-11 14:33:10 +08:00
|
|
|
|
server: # 后端服务地址
|
|
|
|
|
placeholder: ''
|
|
|
|
|
darkMode: auto
|
2022-05-18 20:25:53 +08:00
|
|
|
|
|
2021-02-19 23:33:19 +08:00
|
|
|
|
|
|
|
|
|
######## Footer ########
|
|
|
|
|
footer:
|
|
|
|
|
social:
|
2021-11-19 20:37:42 +08:00
|
|
|
|
# github:
|
2024-01-14 14:10:36 +08:00
|
|
|
|
# icon: '<img src="https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.12/social/08a41b181ce68.svg"/>'
|
2021-03-13 22:30:07 +08:00
|
|
|
|
# url: /
|
2021-11-19 20:37:42 +08:00
|
|
|
|
# music:
|
2024-01-14 14:10:36 +08:00
|
|
|
|
# icon: '<img src="https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.12/social/3845874.svg"/>'
|
2021-03-13 22:30:07 +08:00
|
|
|
|
# url: /
|
2021-11-19 20:37:42 +08:00
|
|
|
|
# unsplash:
|
2024-01-14 14:10:36 +08:00
|
|
|
|
# icon: '<img src="https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.12/social/3616429.svg"/>'
|
2021-03-13 22:30:07 +08:00
|
|
|
|
# url: /
|
2021-11-19 20:37:42 +08:00
|
|
|
|
# comments:
|
2024-01-14 14:10:36 +08:00
|
|
|
|
# icon: '<img src="https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.12/social/942ebbf1a4b91.svg"/>'
|
2021-11-19 20:37:42 +08:00
|
|
|
|
# url: /about/#comments
|
2021-06-26 16:08:16 +08:00
|
|
|
|
sitemap:
|
|
|
|
|
# '博客':
|
|
|
|
|
# - '[近期](/)'
|
|
|
|
|
# - '[分类](/)'
|
|
|
|
|
# - '[标签](/)'
|
|
|
|
|
# - '[归档](/)'
|
|
|
|
|
# '项目':
|
|
|
|
|
# - '[开源库](/)'
|
|
|
|
|
# '社交':
|
|
|
|
|
# - '[友链](/)'
|
|
|
|
|
# - '[留言板](/)'
|
|
|
|
|
# '更多':
|
|
|
|
|
# - '[关于本站](/)'
|
|
|
|
|
# - '[GitHub](/)'
|
2022-09-14 17:47:08 +08:00
|
|
|
|
content: | # 支持 Markdown 格式
|
2024-01-09 11:23:53 +08:00
|
|
|
|
本站由 [${author.name}](/) 使用 [${theme.name} ${theme.version}](${theme.tree}) 主题创建。
|
2022-09-14 17:47:08 +08:00
|
|
|
|
本博客所有文章除特别声明外,均采用 [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/) 许可协议,转载请注明出处。
|
|
|
|
|
# 主题用户越多,开发者维护和更新的积极性就越高,如果您喜欢本主题,请在适当的位置显示主题信息和仓库链接以表支持。
|
2021-02-19 23:33:19 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
######## Tag Plugins ########
|
|
|
|
|
tag_plugins:
|
2023-12-22 10:29:45 +08:00
|
|
|
|
# {% box %} / {% note %}
|
2021-02-19 23:33:19 +08:00
|
|
|
|
note:
|
2022-11-21 23:10:33 +08:00
|
|
|
|
default_color: '' # light, dark, red, orange, yellow, green, cyan, blue, purple, warning, error
|
2022-12-15 22:09:01 +08:00
|
|
|
|
border: true # true / false
|
2021-02-19 23:33:19 +08:00
|
|
|
|
# {% checkbox %}
|
|
|
|
|
checkbox:
|
|
|
|
|
interactive: false # enable interactive for user
|
2022-01-04 23:34:21 +08:00
|
|
|
|
# {% quot %}
|
|
|
|
|
quot:
|
|
|
|
|
default: # 可以自行配置多种图标方案
|
2022-10-24 23:30:34 +08:00
|
|
|
|
prefix: https://bu.dusays.com/2022/10/24/63567d3e092ff.png
|
|
|
|
|
suffix: https://bu.dusays.com/2022/10/24/63567d3e0ab55.png
|
2022-01-04 23:34:21 +08:00
|
|
|
|
hashtag:
|
2022-10-24 23:30:34 +08:00
|
|
|
|
prefix: https://bu.dusays.com/2022/10/24/63567d3e07da3.png
|
2022-01-04 23:34:21 +08:00
|
|
|
|
# {% emoji %}
|
2021-08-02 16:25:27 +08:00
|
|
|
|
emoji:
|
2022-12-20 00:09:34 +08:00
|
|
|
|
default: https://gcore.jsdelivr.net/gh/cdn-x/emoji/qq/${name}.gif
|
|
|
|
|
twemoji: https://gcore.jsdelivr.net/gh/twitter/twemoji/assets/svg/${name}.svg
|
|
|
|
|
qq: https://gcore.jsdelivr.net/gh/cdn-x/emoji/qq/${name}.gif
|
|
|
|
|
aru: https://gcore.jsdelivr.net/gh/cdn-x/emoji/aru-l/${name}.gif
|
|
|
|
|
tieba: https://gcore.jsdelivr.net/gh/cdn-x/emoji/tieba/${name}.png
|
|
|
|
|
blobcat: https://gcore.jsdelivr.net/gh/norevi/waline-blobcatemojis@1.0/blobs/${name}.png
|
2022-01-27 13:46:11 +08:00
|
|
|
|
# {% image %}
|
|
|
|
|
image:
|
2023-05-09 13:17:36 +08:00
|
|
|
|
fancybox: false # true, false
|
2024-01-05 19:43:39 +08:00
|
|
|
|
# {% copy xxx %}
|
|
|
|
|
copy:
|
|
|
|
|
toast: 复制成功
|
2022-10-07 02:38:51 +08:00
|
|
|
|
# {% timeline %}
|
|
|
|
|
timeline:
|
|
|
|
|
max-height: 80vh
|
2022-11-21 23:10:33 +08:00
|
|
|
|
# {% mark %}
|
|
|
|
|
mark:
|
|
|
|
|
default_color: dark # light, dark, red, orange, yellow, green, cyan, blue, purple, warning, error
|
2023-12-06 13:22:07 +08:00
|
|
|
|
# {% hashtag %}
|
|
|
|
|
hashtag:
|
|
|
|
|
default_color: # red, orange, yellow, green, cyan, blue, purple
|
2023-12-06 13:22:29 +08:00
|
|
|
|
# {% okr o1 percent:0.5 status:normal %}
|
|
|
|
|
okr:
|
|
|
|
|
border: true # 是否显示边框
|
|
|
|
|
status: # 可以自行增加
|
|
|
|
|
# 进行中状态
|
|
|
|
|
in_track:
|
|
|
|
|
color: blue # red, orange, yellow, green, cyan, blue, purple
|
|
|
|
|
label: 正常
|
|
|
|
|
at_risk:
|
|
|
|
|
color: yellow
|
|
|
|
|
label: 风险
|
|
|
|
|
off_track:
|
|
|
|
|
color: orange
|
|
|
|
|
label: 延期
|
|
|
|
|
# 结果状态
|
|
|
|
|
finished:
|
|
|
|
|
color: green
|
|
|
|
|
label: 已完成
|
|
|
|
|
unfinished:
|
|
|
|
|
color: red
|
|
|
|
|
label: 未完成
|
2023-12-24 00:02:06 +08:00
|
|
|
|
# {% gallery %}
|
|
|
|
|
gallery:
|
|
|
|
|
layout: grid # grid / flow
|
|
|
|
|
size: mix # s / m / l / xl / mix
|
2023-12-24 13:03:42 +08:00
|
|
|
|
ratio: square # origin / square
|
2023-12-24 00:02:06 +08:00
|
|
|
|
|
2023-12-06 13:22:29 +08:00
|
|
|
|
|
2021-02-19 23:33:19 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
######## JS Plugins ########
|
|
|
|
|
plugins:
|
|
|
|
|
## required plugins ##
|
|
|
|
|
# jquery
|
2024-01-21 21:46:46 +08:00
|
|
|
|
jquery: https://cdn.bootcdn.net/ajax/libs/jquery/3.7.1/jquery.min.js
|
2021-02-19 23:33:19 +08:00
|
|
|
|
|
2022-10-07 02:38:51 +08:00
|
|
|
|
# stellar api
|
|
|
|
|
stellar:
|
|
|
|
|
sites: /js/plugins/sites.js
|
|
|
|
|
friends: /js/plugins/friends.js
|
|
|
|
|
ghinfo: /js/plugins/ghinfo.js
|
|
|
|
|
timeline: /js/plugins/timeline.js
|
2022-10-25 22:41:56 +08:00
|
|
|
|
linkcard: /js/plugins/linkcard.js
|
2022-10-28 22:58:20 +08:00
|
|
|
|
fcircle: /js/plugins/fcircle.js
|
2022-12-01 20:33:04 +08:00
|
|
|
|
weibo: /js/plugins/weibo.js
|
2023-12-14 22:07:42 +08:00
|
|
|
|
memos: /js/plugins/memos.js
|
2024-01-11 23:33:41 +08:00
|
|
|
|
marked: /js/plugins/marked.js
|
2022-10-07 02:38:51 +08:00
|
|
|
|
|
|
|
|
|
marked: https://cdn.bootcdn.net/ajax/libs/marked/4.0.18/marked.min.js
|
2023-02-12 17:44:30 +08:00
|
|
|
|
|
2021-02-19 23:33:19 +08:00
|
|
|
|
## optional plugins ##
|
|
|
|
|
# preload
|
|
|
|
|
preload:
|
2021-02-21 03:13:21 +08:00
|
|
|
|
enable: true
|
2024-01-21 21:46:46 +08:00
|
|
|
|
service: flying_pages # flying_pages
|
|
|
|
|
flying_pages: https://cdn.bootcdn.net/ajax/libs/flying-pages/2.1.2/flying-pages.min.js
|
2021-02-19 23:33:19 +08:00
|
|
|
|
|
|
|
|
|
# image lazyload
|
|
|
|
|
# https://www.npmjs.com/package/vanilla-lazyload
|
|
|
|
|
lazyload:
|
2021-02-21 17:27:48 +08:00
|
|
|
|
enable: true # [hexo clean && hexo s] is required after changing this value.
|
2024-01-21 21:46:46 +08:00
|
|
|
|
js: https://cdn.bootcdn.net/ajax/libs/vanilla-lazyload/17.8.4/lazyload.min.js
|
2024-01-21 21:15:12 +08:00
|
|
|
|
transition: fade # blur, fade
|
2021-02-19 23:33:19 +08:00
|
|
|
|
|
|
|
|
|
# https://scrollrevealjs.org/api/reveal.html
|
|
|
|
|
scrollreveal:
|
2021-07-14 01:18:25 +08:00
|
|
|
|
enable: #true
|
2024-01-19 01:05:44 +08:00
|
|
|
|
js: https://cdn.bootcdn.net/ajax/libs/scrollReveal.js/4.0.9/scrollreveal.min.js
|
|
|
|
|
distance: 16px
|
|
|
|
|
duration: 800 # ms
|
2021-03-04 23:38:41 +08:00
|
|
|
|
interval: 100 # ms
|
2021-02-19 23:33:19 +08:00
|
|
|
|
scale: 1 # 0.1~1
|
2022-01-27 13:46:11 +08:00
|
|
|
|
|
2022-01-21 11:24:32 +08:00
|
|
|
|
# https://fancyapps.com/docs/ui/fancybox/
|
2022-01-27 13:46:11 +08:00
|
|
|
|
# available for {% image xxx %}
|
2022-01-21 11:24:32 +08:00
|
|
|
|
fancybox:
|
2022-01-27 13:46:11 +08:00
|
|
|
|
enable: true
|
2024-01-21 21:15:12 +08:00
|
|
|
|
js: https://cdn.bootcdn.net/ajax/libs/fancyapps-ui/5.0.22/fancybox/fancybox.umd.min.js
|
|
|
|
|
css: https://cdn.bootcdn.net/ajax/libs/fancyapps-ui/5.0.22/fancybox/fancybox.min.css
|
2022-01-27 13:46:11 +08:00
|
|
|
|
# 可以处理评论区的图片(不支持 iframe 类评论系统)例如:
|
|
|
|
|
# 使用twikoo评论可以写: .tk-content img:not([class*="emo"])
|
2022-05-18 20:25:53 +08:00
|
|
|
|
# 使用waline评论可以写: #waline_container .vcontent img
|
2024-01-21 21:15:12 +08:00
|
|
|
|
selector: # 多个选择器用英文逗号隔开
|
2022-01-27 13:46:11 +08:00
|
|
|
|
|
|
|
|
|
# swiper
|
|
|
|
|
swiper:
|
|
|
|
|
enable: true
|
2023-12-21 23:59:53 +08:00
|
|
|
|
css: https://unpkg.com/swiper@10.3/swiper-bundle.min.css
|
|
|
|
|
js: https://unpkg.com/swiper@10.3/swiper-bundle.min.js
|
2022-03-02 14:50:45 +08:00
|
|
|
|
|
|
|
|
|
|
2022-03-02 14:33:20 +08:00
|
|
|
|
# 赫蹏 (Heti) - 专为中文网页内容设计的排版样式增强
|
|
|
|
|
# https://github.com/sivan/heti
|
2022-03-02 14:50:45 +08:00
|
|
|
|
heti:
|
2022-11-16 21:12:54 +08:00
|
|
|
|
enable: false # 此插件会和代码块冲突,仅适用于纯中文博主。
|
2022-12-20 00:09:34 +08:00
|
|
|
|
css: https://unpkg.com/heti@0.9.2/umd/heti.min.css
|
|
|
|
|
js: https://unpkg.com/heti@0.9.2/umd/heti-addon.min.js
|
2022-06-07 13:19:56 +08:00
|
|
|
|
|
2022-06-01 16:23:40 +08:00
|
|
|
|
# MathJax
|
|
|
|
|
# 需在Markdown文件开头加入mathjax: true
|
|
|
|
|
# 推荐使用Pandoc: npm uninstall hexo-renderer-marked --save & npm install hexo-renderer-pandoc --save
|
|
|
|
|
mathjax:
|
2024-01-21 19:56:04 +08:00
|
|
|
|
enable: # true # 可以在特定文章的 front-matter 中设置 mathjax: true 来开启,也可以在这里设置全局开启
|
2024-01-04 10:54:18 +08:00
|
|
|
|
js: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.6/MathJax.js?config=TeX-AMS-MML_HTMLorMML
|
2022-03-02 14:33:20 +08:00
|
|
|
|
|
2022-06-10 23:30:59 +08:00
|
|
|
|
# Katex - The fastest math typesetting library for the web
|
|
|
|
|
# https://katex.org/docs/autorender.html
|
|
|
|
|
# https://github.com/KaTeX/KaTeX
|
|
|
|
|
# 使用 hexo-renderer-markdown-it-plus 作为公式渲染器:npm uninstall hexo-renderer-marked --save npm install hexo-renderer-markdown-it-plus --save
|
|
|
|
|
katex:
|
2024-01-21 19:56:04 +08:00
|
|
|
|
enable: # true # 可以在特定文章的 front-matter 中设置 katex: true 来开启,也可以在这里设置全局开启
|
2023-01-29 19:10:37 +08:00
|
|
|
|
min_css: <link rel="stylesheet" href="https://gcore.jsdelivr.net/npm/katex@0.16.4/dist/katex.min.css" integrity="sha384-vKruj+a13U8yHIkAyGgK1J3ArTLzrFGBbBc0tDp4ad/EyewESeXE/Iv67Aj8gKZ0" crossorigin="anonymous">
|
|
|
|
|
min_js: <script defer src="https://gcore.jsdelivr.net/npm/katex@0.16.4/dist/katex.min.js" integrity="sha384-PwRUT/YqbnEjkZO0zZxNqcxACrXe+j766U2amXcgMg5457rve2Y7I6ZJSm2A0mS4" crossorigin="anonymous"></script>
|
|
|
|
|
auto_render_min_js: <script defer src="https://gcore.jsdelivr.net/npm/katex@0.16.4/dist/contrib/auto-render.min.js" integrity="sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05" crossorigin="anonymous"onload="renderMathInElement(document.body);"></script>
|
2021-03-04 23:38:41 +08:00
|
|
|
|
|
2023-02-12 17:44:30 +08:00
|
|
|
|
# Mermaid - markdwon to flow chart, seq chart, class chart ...
|
|
|
|
|
# 需要安装 npm install --save hexo-filter-mermaid-diagrams
|
|
|
|
|
# 使用时 需要在Markdown文件开头加入 mermaid: true
|
|
|
|
|
# 使用示例:
|
|
|
|
|
# ```mermaid
|
|
|
|
|
# graph LR
|
|
|
|
|
# A(Section A) -->|option 1| B(Section A)
|
|
|
|
|
# B -->|option 2| C(Section C)
|
|
|
|
|
# ```
|
|
|
|
|
mermaid:
|
2024-01-21 19:56:04 +08:00
|
|
|
|
enable: # true # 可以在特定文章的 front-matter 中设置 mermaid: true 来开启,也可以在这里设置全局开启
|
2024-01-04 13:39:50 +08:00
|
|
|
|
style_optimization: false # use custom style in stellar
|
2023-02-12 17:44:30 +08:00
|
|
|
|
# js: https://unpkg.com/mermaid@9.0.0/dist/mermaid.min.js
|
|
|
|
|
js: https://cdn.jsdelivr.net/npm/mermaid@v9/dist/mermaid.min.js
|
|
|
|
|
# Available themes: default | dark | forest | neutral
|
2023-07-18 22:17:14 +08:00
|
|
|
|
theme: neutral
|
2023-02-12 17:44:30 +08:00
|
|
|
|
|
2023-05-09 12:54:34 +08:00
|
|
|
|
# 代码块复制按钮
|
|
|
|
|
copycode:
|
|
|
|
|
enable: true
|
|
|
|
|
js: /js/plugins/copycode.js
|
|
|
|
|
default_text: 'Copy'
|
|
|
|
|
success_text: 'Copied'
|
2024-01-05 20:49:46 +08:00
|
|
|
|
toast: 复制成功
|
2023-05-09 13:09:05 +08:00
|
|
|
|
|
|
|
|
|
# AI 摘要
|
|
|
|
|
# https://github.com/zhheo/Post-Abstract-AI
|
|
|
|
|
tianli_gpt:
|
|
|
|
|
enable: false
|
|
|
|
|
field: post # all, post, wiki
|
2023-09-06 10:30:29 +08:00
|
|
|
|
api: 5Q5mpqRK5DkwT1X9Gi5e # tianli_gpt key
|
2024-01-19 01:12:04 +08:00
|
|
|
|
limit: 1000 # 设置提交的字数限制,默认为1000字,上限为5000,超过5000字符将被截断,不能为空
|
2023-09-06 10:30:29 +08:00
|
|
|
|
typingAnimate: true # 打字机动画
|
2023-05-09 12:54:34 +08:00
|
|
|
|
|
2021-04-02 20:24:16 +08:00
|
|
|
|
style:
|
2021-08-28 14:03:54 +08:00
|
|
|
|
darkmode: auto # auto / always / false
|
2023-12-22 10:29:45 +08:00
|
|
|
|
smooth_scroll: false # true / false 开启时如果目录过长可能无法准确定位
|
2022-12-15 22:09:01 +08:00
|
|
|
|
font-size:
|
|
|
|
|
root: 16px
|
2024-01-18 22:11:58 +08:00
|
|
|
|
body: 1rem # 16px
|
2022-12-15 22:09:01 +08:00
|
|
|
|
code: 85% # 14px
|
|
|
|
|
codeblock: 0.8125rem # 13px
|
2022-10-12 23:19:10 +08:00
|
|
|
|
font-family:
|
2022-10-23 19:17:48 +08:00
|
|
|
|
logo: 'system-ui, "Microsoft Yahei", "Segoe UI", -apple-system, Roboto, Ubuntu, "Helvetica Neue", Arial, "WenQuanYi Micro Hei", sans-serif'
|
|
|
|
|
body: 'system-ui, "Microsoft Yahei", "Segoe UI", -apple-system, Roboto, Ubuntu, "Helvetica Neue", Arial, "WenQuanYi Micro Hei", sans-serif'
|
|
|
|
|
code: 'Menlo, Monaco, Consolas, system-ui, "Courier New", monospace, sans-serif'
|
2022-12-15 22:09:01 +08:00
|
|
|
|
codeblock: 'Menlo, Monaco, Consolas, system-ui, "Courier New", monospace, sans-serif'
|
2022-10-25 10:07:53 +08:00
|
|
|
|
text-align: left
|
2022-12-15 22:09:01 +08:00
|
|
|
|
border-radius:
|
|
|
|
|
card: 12px
|
|
|
|
|
block: 12px
|
2024-01-17 14:07:30 +08:00
|
|
|
|
bar: 12px
|
2022-12-15 22:42:48 +08:00
|
|
|
|
image: 6px
|
2022-10-19 13:40:18 +08:00
|
|
|
|
color:
|
2022-12-09 23:56:58 +08:00
|
|
|
|
# 动态颜色(会根据明暗主题重设明度值,只用关心色相和饱和度即可)
|
2022-12-10 18:43:55 +08:00
|
|
|
|
background: 'hsl(212 16% 98%)' # 浅色背景颜色
|
|
|
|
|
block: 'hsl(212 8% 95%)' # 块背景颜色
|
2024-01-05 22:58:30 +08:00
|
|
|
|
code: 'hsl(220 20% 10%)' # 'hsl(14 100% 48%)' # 行内代码颜色
|
2022-12-10 18:43:55 +08:00
|
|
|
|
text: 'hsl(0 0% 20%)' # 文本颜色
|
|
|
|
|
# 主题色配置(不会根据明暗动态调整,请设置为通用的颜色)
|
|
|
|
|
theme: 'hsl(192 98% 55%)' # 主题色
|
|
|
|
|
accent: 'hsl(14 100% 57%)' # 强调色
|
|
|
|
|
link: 'hsl(207 90% 54%)' # 超链接颜色
|
|
|
|
|
button: 'hsl(192 98% 55%)' # 按钮颜色
|
|
|
|
|
hover: 'hsl(14 100% 57%)' # 按钮高亮颜色
|
2023-05-20 13:10:57 +08:00
|
|
|
|
link:
|
|
|
|
|
underline: true # true / false
|
2021-04-07 22:38:13 +08:00
|
|
|
|
animated_avatar:
|
|
|
|
|
animate: auto # auto, always
|
2024-01-14 14:10:36 +08:00
|
|
|
|
background: https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.12/avatar/round/rainbow64@3x.webp
|
2021-07-14 00:15:21 +08:00
|
|
|
|
codeblock:
|
|
|
|
|
scrollbar: 4px
|
2024-01-21 21:46:46 +08:00
|
|
|
|
highlightjs_theme: https://gcore.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/styles/atom-one-dark.min.css
|
2022-10-24 00:41:49 +08:00
|
|
|
|
loading:
|
|
|
|
|
loading: 正在加载
|
|
|
|
|
error: 加载失败,请稍后重试。
|
2022-12-16 14:53:08 +08:00
|
|
|
|
gradient: # https://webgradients.com/
|
2022-12-30 19:28:39 +08:00
|
|
|
|
start: 'linear-gradient(to right, hsl(215, 95%, 64%), hsl(195, 95%, 60%), hsl(165, 95%, 56%), hsl(165, 95%, 56%), hsl(195 95% 60%), hsl(215, 95%, 64%))'
|
2022-12-16 14:53:08 +08:00
|
|
|
|
search: 'linear-gradient(to right, #04F3FF, #08FFC6, #DDF730, #FFBD19, #FF1FE0, #C418FF, #04F3FF)'
|
2024-01-18 22:11:58 +08:00
|
|
|
|
sidebar:
|
|
|
|
|
# 可以设置:纯色/渐变色/图片作为背景
|
|
|
|
|
# background: 'linear-gradient(to bottom, #abc3, #abc3)'
|
|
|
|
|
# background: 'linear-gradient(to bottom, #20E2D744, #F9FEA544)'
|
|
|
|
|
background: 'url(https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.13/image/sidebar-bg1@small.jpg)'
|
2024-01-21 21:46:46 +08:00
|
|
|
|
# 在图片上层增加高斯模糊效果(同时附带饱和度增强效果)
|
2024-01-18 22:11:58 +08:00
|
|
|
|
blur: true
|
2024-01-19 13:51:55 +08:00
|
|
|
|
paginator:
|
|
|
|
|
prev: https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.12/arrow/f049bbd4e88ec.svg
|
|
|
|
|
next: https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.12/arrow/064b95430caf4.svg
|
|
|
|
|
error_page: https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.12/404/1c830bfcd517d.svg
|
2021-04-01 22:36:26 +08:00
|
|
|
|
|
2021-03-04 23:38:41 +08:00
|
|
|
|
default:
|
2024-01-14 14:10:36 +08:00
|
|
|
|
avatar: https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.12/avatar/round/3442075.svg
|
|
|
|
|
link: https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.12/link/8f277b4ee0ecd.svg
|
|
|
|
|
cover: https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.12/cover/76b86c0226ffd.svg
|
|
|
|
|
image: https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.12/image/2659360.svg
|
|
|
|
|
project: https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.12/image/2779789.png
|
|
|
|
|
banner: https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.12/banner/books.jpg
|
|
|
|
|
topic: https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.12/image/10433048.png
|
2024-01-18 22:11:58 +08:00
|
|
|
|
|
2022-11-06 00:18:15 +08:00
|
|
|
|
|
|
|
|
|
api_host:
|
|
|
|
|
ghapi: https://api.github.com
|
|
|
|
|
ghraw: https://raw.githubusercontent.com
|
2023-01-28 00:54:46 +08:00
|
|
|
|
gist: https://gist.github.com
|