Skip to content

Commit

Permalink
升级主题版本
Browse files Browse the repository at this point in the history
  • Loading branch information
Potat0000 committed Jul 24, 2024
1 parent 076ef40 commit e7ae6be
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 29 deletions.
75 changes: 50 additions & 25 deletions _config.fluid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ favicon: favicon.png
# Icon for Apple touch
apple_touch_icon: apple-touch-icon.png

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

Expand Down Expand Up @@ -62,7 +62,7 @@ code:
highlightjs:
# 在链接中挑选 style 填入
# Select a style in the link
# See: https://highlightjs.org/static/demo/
# See: https://highlightjs.org/demo/
style: "github gist"
style_dark: "dark"

Expand Down Expand Up @@ -109,7 +109,7 @@ fun_features:
element: h1,h2,h3,h4,h5,h6
# Options: left | right
placement: left
# Options: hover | always | touch
# Options: hover | always
visible: hover
# Options: § | # | ❡
icon: ""
Expand All @@ -128,7 +128,7 @@ fun_features:
dark_mode:
enable: true
# 默认的选项(当用户手动切换后则不再按照默认模式),选择 `auto` 会优先遵循 prefers-color-scheme,其次按用户本地时间 18 点到次日 6 点之间进入暗色模式
# 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
# 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

Expand All @@ -154,7 +154,7 @@ color:
navbar_text_color_dark: "#d0d0d0"

# 副标题字体色
# Color of navigation bar text
# Color of subtitle text
subtitle_color: "#fff"
subtitle_color_dark: "#d0d0d0"

Expand Down Expand Up @@ -241,7 +241,7 @@ custom_css:

# 网页访问统计
# Analysis of website visitors
web_analytics: # 网页访问统计
web_analytics:
enable: true

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

# 51.la 站点统计 ID
# 51.la analytics
# See: https://www.51.la/user/site/index
woyaola: # 51.la 站点统计 ID,参见

# 友盟/cnzz 站点统计 web_id
# cnzz analytics
# See: https://web.umeng.com/main.php?c=site&a=show
cnzz:

# LeanCloud 计数统计,可用于 PV UV 展示,如果 `web_analytics: enable` 没有开启,PV UV 展示只会查询不会增加
# 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
leancloud:
Expand All @@ -292,6 +282,40 @@ web_analytics: # 网页访问统计
# If true, ignore localhost & 127.0.0.1
ignore_local: false

# Umami Analytics,仅支持自部署。如果要展示 PV UV 需要填写所有配置项,否则只填写 `src` 和 `website_id` 即可
# 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'
# See: https://umami.is/docs/authentication
umami:
# umami js 文件地址,需要在 umami 后台创建站点后获取
# umami js file url, get after create website in umami
src:

# umami 的 website id,需要在 umami 后台创建站点后获取
# umami website id, get after create website in umami
website_id:

# 如果你只想统计特定的域名可以填入此字段,多个域名通过逗号分隔,这可以避免统计 localhost。
# 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
# See: https://support.google.com/webmasters/answer/139066
canonical:
enable: true

# 对页面中的图片和评论插件进行懒加载处理,可见范围外的元素不会提前加载
# Lazy loading of images and comment plugin on the page
lazyload:
Expand All @@ -311,7 +335,7 @@ lazyload:

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

#---------------------------
# 页头
Expand Down Expand Up @@ -439,9 +463,9 @@ footer:
statistics:
enable: false

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

# 国内大陆服务器的备案信息
Expand Down Expand Up @@ -473,7 +497,7 @@ index:
# Available: 0 - 100
banner_img_height: 100

# 头图黑色蒙版的不透明度,available: 0 - 1.0, 1 是完全不透明
# 头图黑色蒙版的不透明度,available: 0 - 1.0,1 是完全不透明
# Opacity of the banner mask, 1.0 is completely opaque
# Available: 0 - 1.0
banner_mask_alpha: 0.3
Expand Down Expand Up @@ -584,7 +608,7 @@ post:
enable: false
# 统计数据来源
# Data Source
# Options: busuanzi | leancloud
# Options: busuanzi | leancloud | umami
source: "leancloud"

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

# CreativeCommons license
# Options: BY | BY-SA | BY-ND | BY-NC | BY-NC-SA | BY-NC-ND
# See: https://creativecommons.org/share-your-work/cclicenses/
# Options: BY | BY-SA | BY-ND | BY-NC | BY-NC-SA | BY-NC-ND | ZERO
license: "BY-NC-SA"

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

anchor: //lib.baomitu.com/anchor-js/4.3.1/
anchor: //lib.baomitu.com/anchor-js/5.0.0/
bootstrap: //lib.baomitu.com/twitter-bootstrap/4.6.1/
clipboard: //lib.baomitu.com/clipboard.js/2.0.11/
fancybox: //lib.baomitu.com/fancybox/3.5.7/
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,28 @@
"name": "potat0-box",
"version": "1.0.0",
"hexo": {
"version": "7.1.1"
"version": "7.3.0"
},
"license": "GPL-3.0-only",
"repository": {
"type": "git",
"url": "git+https://github.com/Potat0000/Blog.git"
},
"dependencies": {
"hexo": "^7.1.1",
"hexo": "^7.3.0",
"hexo-filter-nofollow": "^2.0.2",
"hexo-generator-archive": "^2.0.0",
"hexo-generator-category": "^2.0.0",
"hexo-generator-feed": "^3.0.0",
"hexo-generator-index": "^3.0.0",
"hexo-generator-index": "^4.0.0",
"hexo-generator-index-pin-top": "^0.2.2",
"hexo-generator-sitemap": "^3.0.1",
"hexo-generator-tag": "^2.0.0",
"hexo-renderer-ejs": "^2.0.0",
"hexo-renderer-markdown-it": "^7.1.1",
"hexo-renderer-stylus": "^3.0.1",
"hexo-server": "^3.0.0",
"hexo-theme-fluid": "^1.9.7",
"hexo-theme-fluid": "^1.9.8",
"markdown-it-abbr": "^2.0.0",
"markdown-it-cjk-breaks": "^2.0.0",
"markdown-it-container": "^4.0.0",
Expand Down

0 comments on commit e7ae6be

Please sign in to comment.