Hexo英文和中文之间自动加空格
效果对比
名称
链接
范围
生成速度
pangu
中英文不空格,链接不失效
可控制任意地方空格
无影响
hexo-filter-auto-spacing
中英文空格,导致链接失效
只能全站空格
遍历所有html,超慢
推荐盘古https://github.com/vinta/pangu.js
Butterfly 3.5.1主题测试通过,其他主题请翻阅主题文档。
没有请创建_config.butterfly.yml,修改为以下代码
12pangu: enable: true
Hexo官方插件hexo-filter-auto-spacing不推荐,会把链接中英文也空格了,导致链接失效
https://github.com/hexojs/hexo-filter-auto-spacing
https://hexo.io/zh-cn/docs/configuration
https://github.com/hexojs/hexo/issues/1242
安装1npm install hexo-filter-auto-spacing
配置_config.yml加上
1auto ...
Hexo Butterfly 移动端折叠菜单
配置没有请创建_config.butterfly.yml相应位置修改
12# Hide the child menu items in mobile sidebarhide_sidebar_menu_child: true #移动端默认折叠
Hexo Butterfly 水平分隔线图标大风车设置
配置没有请创建blog\_config.butterfly.yml相应位置修改
123hr_icon: enable: true icon: '\f863'
图标库https://fontawesome.com
http://www.fontawesome.com.cn
https://www.thinkcmf.com/font/font_awesome/icons.html
网络好建议使用第一个,其他的不生效以第一个为准,
例如envira
123<i class="fab fa-envira"></i><i class="fa fa-envira" aria-hidden="true"></i><i class="fa fa-envira" aria-hidden="true"></i>
分隔线写法1-----
效果
Hexo Butterfly 小标题旋转大风车设置
配置没有请创建blog/_configy.butterfly.yml相应位置修改
123456beautify: enable: true title-prefix-icon: '\f863'inject: head: - "<style>#article-container.post-content h1:before, h2:before, h3:before, h4:before, h5:before, h6:before { -webkit-animation: avatar_turn_around 1s linear infinite; -moz-animation: avatar_turn_around 1s linear infinite; -o-animation: avatar_turn_around 1s linear infinite; -ms-animation: avatar_turn_around 1s linear infinite; animation: avatar_turn_arou ...
Mac上使用VScode运行C/C++
插件C/C++
Code Runner
执行程序右键点击Run Code
参考https://blog.csdn.net/GrofChen/article/details/109577921
macOS最有效的升级g++
代码1brew install gcc@9
查看版本1g++-9 --version
上手Homebrew
官网https://brew.sh/index_zh-cn
软件包https://formulae.brew.sh/formula/
macOS通过Homebrew安装GCC、G++
安装123brew search gcc9brew install gcc@9g++-9 --version
彻底解决Homebrew卡慢
安装1234567891011/bin/bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/Homebrew/install/install.sh)"cd "$(brew --repo)/Library/Taps/"rm -rf homebrewmkdir homebrewcd homebrewgit clone git://mirrors.ustc.edu.cn/homebrew-core.gitgit clone git://mirrors.ustc.edu.cn/homebrew-cask.gitcd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.gitcd "$(brew --repo)/Library/Taps/homebrew/homebrew-cask"g ...
Butterfly Pjax 添加站长统计
获取站长统计id和网址https://web.umeng.com/main.php?c=site&a=show
1<script type="text/javascript">document.write(unescape("%3Cspan id='cnzz_stat_icon_1279395259'%3E%3C/span%3E%3Cscript src='https://s4.cnzz.com/z_stat.php%3Fid%3D1279395259%26online%3D1%26show%3Dline' type='text/javascript'%3E%3C/script%3E"));</script>
id是1279395259网址是https://s4.cnzz.com
配置没有请创建_config.butterfly.yml相应位置修改 ...