huxpro.github.io icon indicating copy to clipboard operation
huxpro.github.io copied to clipboard

主题增加分享功能

Open zhoufwind opened this issue 7 years ago • 4 comments

看到其他主题有分享功能,不过都是外面的,可以考虑下增加微信、微博的分享功能哈~

推特、脸书及谷歌

        <div class="page-share">
          <a href="https://twitter.com/intent/tweet?text={{ page.title }}&url={{ site.url }}{{ page.url }}" title="Share on Twitter" rel="nofollow" target="_blank">Twitter</a>
          <a href="https://facebook.com/sharer.php?u={{ site.url }}{{ page.url }}" title="Share on Facebook" rel="nofollow" target="_blank">Facebook</a>
          <a href="https://plus.google.com/share?url={{ site.url }}{{ page.url }}" title="Share on Google+" rel="nofollow" target="_blank">Google+</a>
        </div>

微博

Weibo share api

微信

WeChat share api

zhoufwind avatar Jul 01 '18 14:07 zhoufwind

使用百度分享,调试时正常,提交github线上后没有了

manshuoquan avatar Oct 05 '18 09:10 manshuoquan

使用百度分享,调试时正常,提交github线上后没有了

百度分享实践

其实我也用的百度分享,一段脚本,是有的,不过如果代码托管在github,会被浏览器拦截,提示,不安全的脚本,需要点击继续加载,如下:

重新加载后,就会有的.你代码加在哪里,就会在哪里显示的:就是这个样子了:我是加在文章末尾的:

yizibi avatar Oct 18 '18 01:10 yizibi

使用百度分享,调试时正常,提交github线上后没有了

百度分享实践

其实我也用的百度分享,一段脚本,是有的,不过如果代码托管在github,会被浏览器拦截,提示,不安全的脚本,需要点击继续加载,如下:

重新加载后,就会有的.你代码加在哪里,就会在哪里显示的:就是这个样子了:我是加在文章末尾的:

多谢哈,回来我看一下,用的safari,没注意到有拦截提示

manshuoquan avatar Oct 18 '18 09:10 manshuoquan

我的博客里面添加了分享功能了 https://liaocan.top 可以参考一下

nqmysb avatar Mar 26 '19 06:03 nqmysb