MENU

Typecho 添加 自定义表情

August 2, 2024 • Read: 60 • Typecho

素材上传

表情包素材 解压后上传至主题表情包目录,/usr/themes/Mirages/usr/biaoqing/

配置编辑

将以下代码插入到表情包配置文件中,顺序按照喜好调整。文件位置为 Typecho 根目录 /usr/themes/Mirages/usr/biaoqing/OwO.json

配置详情

"蛆音娘": {
    "type": "usr",
    "name": "quyin",
    "suffix": ".png",
    "retinaSuffix": ".png",
    "imgClass": "quyin",
    "container": [{
            "icon": "hematemesis",
            "text": "吐血"
        },
        {
            "icon": "1huaji",
            "text": "滑稽"
        },
        {
            "icon": "amazing",
            "text": "吃惊"
        },
        {
            "icon": "angry",
            "text": "生气"
        },
        {
            "icon": "cry",
            "text": "哭泣"
        },
        {
            "icon": "die",
            "text": "die"
        },
        {
            "icon": "doubt",
            "text": "疑问"
        },
        {
            "icon": "feizao",
            "text": "肥皂"
        },
        {
            "icon": "fue",
            "text": "扶额"
        },
        {
            "icon": "heng",
            "text": "哼"
        },
        {
            "icon": "laughing",
            "text": "大笑"
        },
        {
            "icon": "look",
            "text": "偷看"
        },
        {
            "icon": "maimeng",
            "text": "卖萌"
        },
        {
            "icon": "OK",
            "text": "OK!"
        },
        {
            "icon": "scare",
            "text": "吓死宝宝惹"
        },
        {
            "icon": "shakinghead",
            "text": "摇头"
        },
        {
            "icon": "sleep",
            "text": "睡觉"
        },
        {
            "icon": "speechless",
            "text": "无语"
        },
        {
            "icon": "watermaleon",
            "text": "吃瓜"
        },
        {
            "icon": "witty",
            "text": "机智"
        }
    ]
}

调整大小

因为素材尺寸较大,可以使用 CSS 控制一下。依次进入 控制台 - 外观 - 设置外观 - 主题自定义扩展,将代码加入到 自定义 HTML 元素拓展 - 标签: head 头部 (meta 元素后)

<style>
img.biaoqing.quyin {
    margin-bottom: -.3125rem;
    min-height: 3.25rem;
    height: 1em;
}
</style>


Last Modified: August 4, 2024
Archives QR Code Tip
QR Code for this page
Tipping QR Code