看到一个不错的主题

包含目录导航 各方面比之前的主题好看 下面记录下切换的过程

下载主题到网站 主题目录

wget https://github.com/wehaox/Typecho-Butterfly/releases/download/1.5.8/butterfly_Beta1.5.8.zip

解压

unzip butterfly_Beta1.5.8.zip

在控制台切换外观至butterfly

设置 博客静态资源加载方式 为静态 需要在该主题目录下下载以下文件并解压

wget https://github.com/wehaox/Typecho-Butterfly/releases/download/1.5.8/static-1.5.8.zip
unzip static-1.5.8.zip

设置统计代码至 自定义head标签内位置内容

修改config.inc.php 以使博客可以保存带有emoji表情的内容

vi config.inc.php

修改以下内容 其余不变
'charset' => 'utf8mb4',

登入数据库修改相应的数据库编码方式

登入数据库后选择相应的数据库 点击SQL 填入以下内容
alter table typecho_comments convert to character set utf8mb4 collate utf8mb4_unicode_ci;
alter table typecho_contents convert to character set utf8mb4 collate utf8mb4_unicode_ci;
alter table typecho_fields convert to character set utf8mb4 collate utf8mb4_unicode_ci;
alter table typecho_metas convert to character set utf8mb4 collate utf8mb4_unicode_ci;
alter table typecho_options convert to character set utf8mb4 collate utf8mb4_unicode_ci;
alter table typecho_relationships convert to character set utf8mb4 collate utf8mb4_unicode_ci;
alter table typecho_users convert to character set utf8mb4 collate utf8mb4_unicode_ci;

执行即可

参考

https://github.com/wehaox/Typecho-Butterfly/
https://blog.wehaox.com/archives/typecho-butterfly.html