Skip to content

Commit e7ae6be

Browse files
committed
升级主题版本
1 parent 076ef40 commit e7ae6be

File tree

2 files changed

+54
-29
lines changed

2 files changed

+54
-29
lines changed

_config.fluid.yml

+50-25
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ favicon: favicon.png
2424
# Icon for Apple touch
2525
apple_touch_icon: apple-touch-icon.png
2626

27-
# 浏览器标签页中的标题分隔符,效果: 文章名 - 站点名
27+
# 浏览器标签页中的标题分隔符,效果:文章名 - 站点名
2828
# Title separator in browser tab, eg: article - site
2929
tab_title_separator: " - "
3030

@@ -62,7 +62,7 @@ code:
6262
highlightjs:
6363
# 在链接中挑选 style 填入
6464
# Select a style in the link
65-
# See: https://highlightjs.org/static/demo/
65+
# See: https://highlightjs.org/demo/
6666
style: "github gist"
6767
style_dark: "dark"
6868

@@ -109,7 +109,7 @@ fun_features:
109109
element: h1,h2,h3,h4,h5,h6
110110
# Options: left | right
111111
placement: left
112-
# Options: hover | always | touch
112+
# Options: hover | always
113113
visible: hover
114114
# Options: § | # | ❡
115115
icon: ""
@@ -128,7 +128,7 @@ fun_features:
128128
dark_mode:
129129
enable: true
130130
# 默认的选项(当用户手动切换后则不再按照默认模式),选择 `auto` 会优先遵循 prefers-color-scheme,其次按用户本地时间 18 点到次日 6 点之间进入暗色模式
131-
# 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 visitors local time
131+
# 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
132132
# Options: auto | light | dark
133133
default: auto
134134

@@ -154,7 +154,7 @@ color:
154154
navbar_text_color_dark: "#d0d0d0"
155155

156156
# 副标题字体色
157-
# Color of navigation bar text
157+
# Color of subtitle text
158158
subtitle_color: "#fff"
159159
subtitle_color_dark: "#d0d0d0"
160160

@@ -241,7 +241,7 @@ custom_css:
241241

242242
# 网页访问统计
243243
# Analysis of website visitors
244-
web_analytics: # 网页访问统计
244+
web_analytics:
245245
enable: true
246246

247247
# 遵循访客浏览器"请勿追踪"的设置,如果开启则不统计其访问
@@ -267,16 +267,6 @@ web_analytics: # 网页访问统计
267267
sid:
268268
cid:
269269

270-
# 51.la 站点统计 ID
271-
# 51.la analytics
272-
# See: https://www.51.la/user/site/index
273-
woyaola: # 51.la 站点统计 ID,参见
274-
275-
# 友盟/cnzz 站点统计 web_id
276-
# cnzz analytics
277-
# See: https://web.umeng.com/main.php?c=site&a=show
278-
cnzz:
279-
280270
# LeanCloud 计数统计,可用于 PV UV 展示,如果 `web_analytics: enable` 没有开启,PV UV 展示只会查询不会增加
281271
# LeanCloud count statistics, which can be used for PV UV display. If `web_analytics: enable` is false, PV UV display will only query and not increase
282272
leancloud:
@@ -292,6 +282,40 @@ web_analytics: # 网页访问统计
292282
# If true, ignore localhost & 127.0.0.1
293283
ignore_local: false
294284

285+
# Umami Analytics,仅支持自部署。如果要展示 PV UV 需要填写所有配置项,否则只填写 `src` 和 `website_id` 即可
286+
# Umami Analytics, only Self-host support. If you want to display PV UV need to set all config items, otherwise only set 'src' and 'website_id'
287+
# See: https://umami.is/docs/authentication
288+
umami:
289+
# umami js 文件地址,需要在 umami 后台创建站点后获取
290+
# umami js file url, get after create website in umami
291+
src:
292+
293+
# umami 的 website id,需要在 umami 后台创建站点后获取
294+
# umami website id, get after create website in umami
295+
website_id:
296+
297+
# 如果你只想统计特定的域名可以填入此字段,多个域名通过逗号分隔,这可以避免统计 localhost。
298+
# 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
299+
domains:
300+
301+
# 用于统计 PV UV 的开始时间,格式为 "YYYY-MM-DD"
302+
# statistics on the start time, the format is "YYYY-MM-DD"
303+
start_time: 2024-01-01
304+
305+
# 新建一个 umami viewOnly 用户,然后通过 login api 获取该用户 token
306+
# create an umami viewOnly user, and then get user token through the login api
307+
token:
308+
309+
# 填写 umami 部署的服务器地址,如 "https://umami.example.com"
310+
# server url of umami deployment, such as "https://umami.example.com"
311+
api_server:
312+
313+
# Canonical 用于向 Google 搜索指定规范网址,开启前确保 hexo _config.yml 中配置 `url: http://yourdomain.com`
314+
# Canonical, to specify a canonical URL for Google Search, need to set up `url: http://yourdomain.com` in hexo _config.yml
315+
# See: https://support.google.com/webmasters/answer/139066
316+
canonical:
317+
enable: true
318+
295319
# 对页面中的图片和评论插件进行懒加载处理,可见范围外的元素不会提前加载
296320
# Lazy loading of images and comment plugin on the page
297321
lazyload:
@@ -311,7 +335,7 @@ lazyload:
311335

312336
# 图标库,包含了大量社交类图标,主题依赖的不包含在内,因此可自行修改,详见 https://hexo.fluid-dev.com/docs/icon/
313337
# 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/
314-
iconfont: //at.alicdn.com/t/font_1736178_lbnruvf0jn.css
338+
iconfont: //at.alicdn.com/t/c/font_1736178_k526ubmyhba.css
315339

316340
#---------------------------
317341
# 页头
@@ -439,9 +463,9 @@ footer:
439463
statistics:
440464
enable: false
441465

442-
# 统计数据来源,使用 leancloud 需要设置 `web_analytics: leancloud` 中的参数;使用 busuanzi 不需要额外设置,但是有时不稳定,另外本地运行时 busuanzi 显示统计数据很大属于正常现象,部署后会正常
443-
# Data source. If use leancloud, you need to set the parameter in `web_analytics: leancloud`
444-
# Options: busuanzi | leancloud
466+
# 统计数据来源,使用 leancloud, umami 需要设置 `web_analytics` 中对应的参数;使用 busuanzi 不需要额外设置,但是有时不稳定,另外本地运行时 busuanzi 显示统计数据很大属于正常现象,部署后会正常
467+
# Data source. If use leancloud, umami, you need to set the parameter in `web_analytics`
468+
# Options: busuanzi | leancloud | umami
445469
source: "leancloud"
446470

447471
# 国内大陆服务器的备案信息
@@ -473,7 +497,7 @@ index:
473497
# Available: 0 - 100
474498
banner_img_height: 100
475499

476-
# 头图黑色蒙版的不透明度,available: 0 - 1.0, 1 是完全不透明
500+
# 头图黑色蒙版的不透明度,available: 0 - 1.0,1 是完全不透明
477501
# Opacity of the banner mask, 1.0 is completely opaque
478502
# Available: 0 - 1.0
479503
banner_mask_alpha: 0.3
@@ -584,7 +608,7 @@ post:
584608
enable: false
585609
# 统计数据来源
586610
# Data Source
587-
# Options: busuanzi | leancloud
611+
# Options: busuanzi | leancloud | umami
588612
source: "leancloud"
589613

590614
# 在文章开头显示文章更新时间,该时间默认是 md 文件更新时间,可通过 front-matter 中 `updated` 手动指定(和 date 一样格式)
@@ -653,7 +677,8 @@ post:
653677
enable: true
654678

655679
# CreativeCommons license
656-
# Options: BY | BY-SA | BY-ND | BY-NC | BY-NC-SA | BY-NC-ND
680+
# See: https://creativecommons.org/share-your-work/cclicenses/
681+
# Options: BY | BY-SA | BY-ND | BY-NC | BY-NC-SA | BY-NC-ND | ZERO
657682
license: "BY-NC-SA"
658683

659684
# 显示作者
@@ -960,7 +985,7 @@ about:
960985
name: "Potat0"
961986
intro: "Vidar Team | Computer Networking | Misc"
962987
# 更多图标可从 https://hexo.fluid-dev.com/docs/icon/ 查找,`class` 代表图标的 css class,添加 `qrcode` 后,图标不再是链接而是悬浮二维码
963-
# 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
988+
# 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
964989
icons:
965990
- {
966991
class: "iconfont icon-telegram-fill",
@@ -1240,7 +1265,7 @@ static_prefix:
12401265
internal_css: /css
12411266
internal_img: /img
12421267

1243-
anchor: //lib.baomitu.com/anchor-js/4.3.1/
1268+
anchor: //lib.baomitu.com/anchor-js/5.0.0/
12441269
bootstrap: //lib.baomitu.com/twitter-bootstrap/4.6.1/
12451270
clipboard: //lib.baomitu.com/clipboard.js/2.0.11/
12461271
fancybox: //lib.baomitu.com/fancybox/3.5.7/

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,28 @@
22
"name": "potat0-box",
33
"version": "1.0.0",
44
"hexo": {
5-
"version": "7.1.1"
5+
"version": "7.3.0"
66
},
77
"license": "GPL-3.0-only",
88
"repository": {
99
"type": "git",
1010
"url": "git+https://github.com/Potat0000/Blog.git"
1111
},
1212
"dependencies": {
13-
"hexo": "^7.1.1",
13+
"hexo": "^7.3.0",
1414
"hexo-filter-nofollow": "^2.0.2",
1515
"hexo-generator-archive": "^2.0.0",
1616
"hexo-generator-category": "^2.0.0",
1717
"hexo-generator-feed": "^3.0.0",
18-
"hexo-generator-index": "^3.0.0",
18+
"hexo-generator-index": "^4.0.0",
1919
"hexo-generator-index-pin-top": "^0.2.2",
2020
"hexo-generator-sitemap": "^3.0.1",
2121
"hexo-generator-tag": "^2.0.0",
2222
"hexo-renderer-ejs": "^2.0.0",
2323
"hexo-renderer-markdown-it": "^7.1.1",
2424
"hexo-renderer-stylus": "^3.0.1",
2525
"hexo-server": "^3.0.0",
26-
"hexo-theme-fluid": "^1.9.7",
26+
"hexo-theme-fluid": "^1.9.8",
2727
"markdown-it-abbr": "^2.0.0",
2828
"markdown-it-cjk-breaks": "^2.0.0",
2929
"markdown-it-container": "^4.0.0",

0 commit comments

Comments
 (0)