add telegram share link

master
ericclose 4 years ago committed by Mr. X
parent df5c4814bc
commit 251e6705c2
  1. 2
      _config.yml
  2. 2
      layout/_third-party/share.ejs

@ -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://img.icons8.com/color/144/000000/telegram-app.png
# 链接
btns:
edit:

@ -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){ %>

Loading…
Cancel
Save