hexo 自定义配置
环境:WSL-Ubuntu 24.04 LTS
hexo 自定义配置
公式渲染(已废弃)
在pandoc发行页面获取下载连接。
1 | npm un hexo-math |
在 _config.yml 添加配置。
1 | math: |
自行修改主题的配置。
文章加密
1 | npm install --save hexo-blog-encrypt |
部署至个人服务器
1 | npm install hexo-deployer-ftpsync --save # 密码 |
服务器权限设置过于严格,均失败。。。。。
转而使用 rsync
1 | rsync -av -e 'ssh -C -p <port>' <source> <user>@<URL>:<target_root> |
站点地图
1 | npm install hexo-generator-sitemap --save |
并向谷歌站长工具提交信息。
百度我懒得弄,总体大差不差,请自行搜索相关信息。
搜索配置
1 | npm install hexo-generator-searchdb |
添加 HEXO 配置,详情见官方页面。并在 butterfly 主题配置中设置为 local_search 。
1 | search: |
更换渲染引擎
1 | npm un hexo-renderer-marked --save |
配置文件添加
1 | # markdown_it_plus 语法渲染插件选项 |
关系图谱
参考大佬文章Butterfly 侧边栏实现 Obsidian 关系图谱
-
安装 cosma
1
2# https://cosma.arthurperret.fr/installing.html
npm install @graphlab-fr/cosma -g -
安装 cosma
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 Reglucis 的博客!
