Hexo折腾记
插件
官方功能
名称 | 作用 | 操作 |
---|---|---|
资源文件夹 | 使用本地图片 | 1. 将root 的_config.yml 中post_asset_folder 设置为true 2. 在文内可通过 {% asset_path slug %} 或者 引用图 |
其余插件
名称 | 作用 | 操作 |
---|---|---|
hexo-douban | 关联豆瓣阅读、电影等 | 1. npm install hexo-douban --save ;2. 在 root 的_config.yml 中写入配置项3. 使用该插件若弹出空白页,将 _config.yml 文件中站外链接新窗口打开设为false |
local_search |
站内文章搜索 | 1. npm install hexo-generator-search --save ;2. 在 root 的_config.yml 中写入配置项 |
LeanCloud | ||
Valine | 简约评论系统,依托于LeanCloud |
* 目前大部分Hexo主题提供支持 1. 获取 LeanCloud 中AppID 和APPKey 2. 修改配置初始化内容为上值 |
导图显示工具 |
||
KaTeX |
插入LaTex公式 | 1. npm un hexo-renderer-marked --save ;npm un hexo-math --save ;npm i @upupming/hexo-renderer-markdown-it-plus --save 2. 设置 _.yml 加载katex.min.css |
hexo-footnotes | 插入脚注、引用 |
主题
- Butterfly:hexo-theme-butterfly安装文档
- Next:Theme for Hexo
其它
- 图床软件:PicGo,SM.MS
- 图片缩放:
<img src="" width="50%" height="50%">
[^1]: Hexo中插入mermaid diagrams
[^2]: Mermaid
[^3]: [NexT]配置MathJax