NiuC - Hello World - 二维码
type: channel
link: https://www.niuc.org/tag/%E4%BA%8C%E7%BB%B4%E7%A0%81/
items: Mirages主题一些小修改

Mirages主题一些小修改
type: item
date: 2023-02-23T16:48:00+08:00
description: 最近使用Mirages主题得到很多人的帮助，下面整理一下我个人目前对本站的一些修改。一、Typecho 开启外链转内链使用的插件是 ShortLinks本站之前一直就有使用这个插件，不过这个插件跟Mirages主题有冲突，解决方法：打开 usr/plugins/ShortLinks/Plugin.php 冲突一冲突二 搜索Typecho_Plugin::factory('Widget_Abstract_Contents')->contentExTypecho_Plugin::factory('Widget_Abstract_Contents')->excerptEx替换Typecho_Plugin::factory('Mirages_Plugin')->contentExTypecho_Plugin::factory('Mirages_Plugin')->excerptEx搜索Typecho\Plugin::factory('\Widget\Base\Contents')->contentExTypecho\Plugin::factory('\Widget\Base\Contents')->excerptEx替换Typecho\Plugin::factory('Mirages_Plugin')->contentExTypecho\Plugin::factory('Mirages_Plugin')->excerptEx 二、Typecho 简单实现点击复制在文章中插入大量无意义内容一不美观，二不便复制，不如使用 js 创建隐藏内容的复制按钮吧。这个我就不介绍了，大家直接去看大佬的教程就好。https://logi.im/blog/copy-on-btn-click-in-typecho.html三、为 Typecho 添加B站蛆音娘表情这个也是转载自老大的站，需要的直接去看原文。https://logi.im/blog/add-quyin-emotion-to-typecho.html四、B站C酱です表情包。模仿大佬的添加表情包方法，我自己也弄了一套B站C酱です表情包。::Cjiang:AWSL:: C酱です表情包下载 解压的文件夹Cjiang不用改名。如何上传表情包素材看上面大佬添加B站蛆音娘表情教程即可。上传素材和添加方法都是一样的。 表情包配置列表 "C酱です": { "type": "usr", "name": "Cjiang", "suffix": ".png", "retinaSuffix": ".png", "imgClass": "Cjiang", "container": [{ "icon": "icon", "text": "C酱" }, { "icon": "Cjiang", "text": "C酱-)—(" }, { "icon": "AWSL", "text": "C酱-AWSL" }, { "icon": "GKD", "text": "C酱-GKD" }, { "icon": "HSO", "text": "C酱-HSO" }, { "icon": "kira", "text": "C酱-kira" }, { "icon": "KOROSUZO", "text": "C酱-KOROSUZO" }, { "icon": "az", "text": "C酱-啊这" }, { "icon": "bya", "text": "C酱-不要啊" }, { "icon": "cq", "text": "C酱-超强" }, { "icon": "dyx", "text": "C酱-打游戏" }, { "icon": "dhks", "text": "C酱-多喝开水" }, { "icon": "gml", "text": "C酱-果咩捏" }, { "icon": "hh", "text": "C酱-哈哈" }, { "icon": "hp", "text": "C酱-害怕" }, { "icon": "he", "text": "C酱-好诶" }, { "icon": "jx", "text": "C酱-惊吓" }, { "icon": "jg", "text": "C酱-警告" }, { "icon": "tt", "text": "C酱-秃头" }, { "icon": "wh", "text": "C酱-问号" }, { "icon": "xf", "text": "C酱-下饭" }, { "icon": "yb", "text": "C酱-一般" }, { "icon": "zlyb", "text": "C酱-再来亿把" }, { "icon": "zjsf", "text": "C酱-真剑胜负" },…