From 39df4b7ac89699c5270f2a633d425b30d6ea0aaa Mon Sep 17 00:00:00 2001 From: XPoet Date: Thu, 7 Mar 2024 11:05:39 +0800 Subject: [PATCH] feat: social contact links add X --- _config.yml | 1 + languages/en.yml | 1 + languages/zh-CN.yml | 1 + languages/zh-TW.yml | 1 + layout/_partial/first-screen.ejs | 5 +++-- 5 files changed, 7 insertions(+), 2 deletions(-) diff --git a/_config.yml b/_config.yml index 23ad9892..33e5481d 100644 --- a/_config.yml +++ b/_config.yml @@ -81,6 +81,7 @@ social_contact: weibo: # WeiBo zhihu: # ZhiHu twitter: # Twitter + x: # X facebook: # Facebook email: # Email diff --git a/languages/en.yml b/languages/en.yml index eb3f54f8..c3aa9cd6 100644 --- a/languages/en.yml +++ b/languages/en.yml @@ -41,6 +41,7 @@ alipay: Alipay weibo: Weibo zhihu: Zhihu twitter: Twitter +x: X facebook: Facebook email: Email code_block: diff --git a/languages/zh-CN.yml b/languages/zh-CN.yml index 4dddbd92..1917fe32 100644 --- a/languages/zh-CN.yml +++ b/languages/zh-CN.yml @@ -41,6 +41,7 @@ alipay: 支付宝 weibo: 微博 zhihu: 知乎 twitter: 推特 +x: X facebook: Facebook email: Email code_block: diff --git a/languages/zh-TW.yml b/languages/zh-TW.yml index 6ee78de2..38b18c07 100644 --- a/languages/zh-TW.yml +++ b/languages/zh-TW.yml @@ -41,6 +41,7 @@ alipay: 支付寶 weibo: 微博 zhihu: 知乎 twitter: Twitter +x: X facebook: Facebook email: Email code_block: diff --git a/layout/_partial/first-screen.ejs b/layout/_partial/first-screen.ejs index f818d32e..7c8fbe8d 100644 --- a/layout/_partial/first-screen.ejs +++ b/layout/_partial/first-screen.ejs @@ -57,11 +57,12 @@ const { enable: sc_enable, links: sc_links } = theme?.social_contact || {} <% } else { %> + <% const sc_icon = key === 'x' ? 'x-twitter' : key %> <% if(isImg) { %> - + <% } else { %> - + <% } %> <% } %>