# Site ## 2026-0504 修改站点配置 title:一世贪欢的私域 subtitle:'浅空碎碎念' description:'记录云原生技术探索、自动化运维实践,以及折腾开源项目的日常碎碎念。' keywords:浅空,博客,云原生,运维,Kubernetes,K8s,Docker,自动化,开源折腾 author:qiankong ## 2026-0504修改语言配置 ## language: en language:zh-CN timezone:'Asia/Shanghai'
# URL ## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project' ## 2026-0504 修改站点配置 url:http://www.bravexist.cn
导航参数,_config.butterfly.yml
1 2 3 4 5 6 7 8
## 2026-0504 配置导航设置 nav: # Navigation bar logo image logo:https://img.bravexist.cn/avatar/Logo.png display_title:true display_post_title:true # Whether to fix navigation bar fixed:false
## 2026-0504 添加子标题,打字机效果。 subtitle: # enable: false enable:true # Typewriter Effect effect:true # Customize typed.js # https://github.com/mattboldt/typed.js/#customization typed_option: # Source - Call the third-party service API (Chinese only) # It will show the source first, then show the content of sub # Choose: false/1/2/3 # false - disable the function # 1 - hitokoto.cn # 2 - https://api.aa1.cn/doc/yiyan.html # 3 - jinrishici.com source:false # If you close the typewriter effect, the subtitle will only show the first line of sub sub: -AnythingisNothing! -境随心转。 -外力的压迫永远战胜不了内心的渴求。 -没有打不到的敌人,没有闯不过的难关。 -当你经过七重的孤独,才能够成为真正的强者。 -天堂和地狱没有我选择的权利,只有我被选择的命运。 -Neverputofftilltomorrowwhatyoucandotoday -人的欲望,就如同高山滚石一般,一旦开始,就再也停不下来了。
## 2026-0504 开启字数统计 wordcount: # enable: false enable:true # Display the word count of the article in post meta post_wordcount:true # Display the time to read the article in post meta min2read:true # Display the total word count of the website in aside's webinfo total_wordcount:true
添加数学公式支持
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
## 2026-0504 开启数学公式支持 math: # Choose: mathjax, katex # Leave it empty if you don't need math use:katex per_page:true hide_scrollbar:false
mathjax: # Enable the contextual menu enableMenu:true # Choose: all / ams / none, This controls whether equations are numbered and how tags:none
katex: # Enable the copy KaTeX formula ## copy_tex: false copy_tex:true
卸载 marked 插件
1 2 3 4 5
pnpm un hexo-renderer-marked--save# 如果有安装这个的话,卸载 pnpm un hexo-renderer-kramed--save# 如果有安装这个的话,卸载
pnpm i hexo-renderer-markdown-it--save# 需要安装这个渲染插件 pnpm install katex @renbaoshuo/markdown-it-katex#需要安装这个katex插件
## 2026-0504 开启 Waline 评论区 comments: # Up to two comments system, the first will be shown as default # Leave it empty if you don't need comments # Choose: Disqus/Disqusjs/Livere/Gitalk/Valine/Waline/Utterances/Facebook Comments/Twikoo/Giscus/Remark42/Artalk # Format of two comments system : Disqus,Waline use:Waline # Display the comment name next to the button text:true # Lazyload: The comment system will be load when comment element enters the browser's viewport. # If you set it to true, the comment count will be invalid lazyload:false # Display comment count in post's top_img ## 在文章顶部显示评论数 ## count: false count:true # Display comment count in Home Page # 在首页文章卡片显示评论数 ## card_post_count: false card_post_count:true
1 2 3 4 5 6 7 8 9
## 2026-0504 开启 Waline 评论区 waline: serverURL:https://waline.bravexist.cn bg: # Use Waline pageview count as the page view count ## 显示文章阅读数 # pageview: false pageview:true option:
snackbar: ## 2026-0504 开启复制弹窗 ## enable: false enable:true position:bottom-left # The background color of Toast Notification in light mode and dark mode bg_light:'#49b1f5' bg_dark:'#1f1f1f'
四、插件
4.1 hexo-abbrlink
可以把链接 permalink 转为数字的插件,配置容易,生成时自动转为数字。
1
pnpm install hexo-abbrlink--save
修改根配置文件,_config.yml
1 2 3 4 5 6 7 8 9 10 11 12
## 2026-0504 修改站点配置 url:http://www.bravexist.cn ## permalink: :year/:month/:day/:title/ permalink:posts/:abbrlink.html 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