Added more share options
Added the ability to share post on Tumblr,Vkontakte, Douban and Weibo
This commit is contained in:
@@ -113,6 +113,10 @@ Linkedin = true
|
|||||||
#Pinterest = true
|
#Pinterest = true
|
||||||
#HackerNews = true
|
#HackerNews = true
|
||||||
#Mix = true
|
#Mix = true
|
||||||
|
#Tumblr = true
|
||||||
|
#VKontakte = true
|
||||||
|
#Douban = true
|
||||||
|
#Weibo = true
|
||||||
|
|
||||||
# Used only for Seo schema
|
# Used only for Seo schema
|
||||||
copyright = "This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License."
|
copyright = "This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License."
|
||||||
|
|||||||
@@ -41,6 +41,30 @@
|
|||||||
<i class="iconfont icon-mix"></i>
|
<i class="iconfont icon-mix"></i>
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if or .Params.Share.Tumblr (and .Site.Params.Share.Tumblr (ne .Params.Share.Tumblr false)) }}
|
||||||
|
<a href="//www.tumblr.com/widgets/share/tool?canonicalUrl={{ .Permalink }}&title={{ .Title }}" target="_blank" title="Share on Tumblr">
|
||||||
|
<i class="iconfont icon-tumblr"></i>
|
||||||
|
</a>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if or .Params.Share.VKontakte (and .Site.Params.Share.VKontakte (ne .Params.Share.VKontakte false)) }}
|
||||||
|
<a href="//vk.com/share.php?url={{ .Permalink }}&title={{ .Title }}" target="_blank" title="Share on VKontakte ">
|
||||||
|
<i class="iconfont icon-vk"></i>
|
||||||
|
</a>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if or .Params.Share.Douban (and .Site.Params.Share.Douban (ne .Params.Share.Douban false)) }}
|
||||||
|
<a href="//www.douban.com/recommend/?url={{ .Permalink }}&title={{ .Title }}" target="_blank" title="Share on Douban ">
|
||||||
|
<i class="iconfont icon-douban"></i>
|
||||||
|
</a>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if or .Params.Share.Weibo (and .Site.Params.Share.Weibo (ne .Params.Share.Weibo false)) }}
|
||||||
|
<a href="//service.weibo.com/share/share.php?url={{ .Permalink }}&appkey=&title={{ .Title }}" target="_blank" title="Share on Douban ">
|
||||||
|
<i class="iconfont icon-weibo"></i>
|
||||||
|
</a>
|
||||||
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user