diff --git a/_config.yml b/_config.yml index 0e7d8b9..e58bc2a 100755 --- a/_config.yml +++ b/_config.yml @@ -231,6 +231,8 @@ meta: img: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-assets/logo/128/weibo.png # - id: qrcode # 当id为qrcode时需要安装插件 npm i -S hexo-helper-qrcode # img: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-assets/logo/128/wechat.png + # - id: telegram + # img: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-assets/logo/128/telegram.png # 链接 btns: edit: diff --git a/layout/_third-party/share.ejs b/layout/_third-party/share.ejs index 1f9bdd6..9d5724b 100644 --- a/layout/_third-party/share.ejs +++ b/layout/_third-party/share.ejs @@ -17,6 +17,8 @@ href="http://connect.qq.com/widget/shareqq/index.html?url=<%- post.permalink %>&title=<%- (post.title || post.seotitle) + ' - ' + config.title %><%- (post.thumbnail) ? '&pics=' + (post.thumbnail) : '' %>&summary=<%- strip_html(post.excerpt) %>" <% } else if (item.id == 'weibo'){ %> href="http://service.weibo.com/share/share.php?url=<%- post.permalink %>&title=<%- (post.title || post.seotitle) + ' - ' + config.title %><%- (post.thumbnail) ? '&pics=' + (post.thumbnail) : '' %>&summary=<%- strip_html(post.excerpt) %>" + <% } else if (item.id == 'telegram'){ %> + href="https://t.me/share/url?url=<%- post.permalink %>&text=<%- (post.title || post.seotitle) + ' - ' + config.title %>" <% } %> > <% if (item.img){ %>