mirror of
https://github.com/dillonzq/LoveIt.git
synced 2025-04-12 08:47:36 +02:00
Added more share options
Added the ability to share post on Tumblr,Vkontakte, Douban and Weibo
This commit is contained in:
parent
586427d31f
commit
3d99437c18
2 changed files with 28 additions and 0 deletions
|
@ -113,6 +113,10 @@ Linkedin = true
|
|||
#Pinterest = true
|
||||
#HackerNews = true
|
||||
#Mix = true
|
||||
#Tumblr = true
|
||||
#VKontakte = true
|
||||
#Douban = true
|
||||
#Weibo = true
|
||||
|
||||
# Used only for Seo schema
|
||||
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>
|
||||
</a>
|
||||
{{ 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 }}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue