LoveIt/layouts/partials/post/share-links.html

76 lines
3.6 KiB
HTML
Raw Normal View History

{{ if or .Params.socialShare (and .Site.Params.socialShare (ne .Params.socialShare false)) }}
2019-08-05 15:15:01 +02:00
{{ if or .Params.Share.Twitter (and .Site.Params.Share.Twitter (ne .Params.Share.Twitter false)) }}
<a href="//twitter.com/share?url={{ .Permalink }}&amp;text={{ .Title }}&amp;via={{ .Site.Params.Social.Twitter }}"
target="_blank" title="Share on Twitter">
<i class="iconfont icon-twitter"></i>
</a>
2019-08-05 15:15:01 +02:00
{{ end }}
{{ if or .Params.Share.Facebook (and .Site.Params.Share.Facebook (ne .Params.Share.Facebook false)) }}
<a href="//www.facebook.com/sharer/sharer.php?u={{ .Permalink }}" target="_blank" title="Share on Facebook">
2019-08-05 15:15:01 +02:00
<i class="iconfont icon-facebook"></i>
</a>
2019-08-05 15:15:01 +02:00
{{ end }}
{{ if or .Params.Share.Reddit (and .Site.Params.Share.Reddit (ne .Params.Share.Reddit false)) }}
<a href="//reddit.com/submit?url={{ .Permalink }}&amp;title={{ .Title }}" target="_blank" title="Share on Reddit">
2019-08-05 15:15:01 +02:00
<i class="iconfont icon-reddit"></i>
</a>
2019-08-05 15:15:01 +02:00
{{ end }}
{{ if or .Params.Share.Linkedin (and .Site.Params.Share.Linkedin (ne .Params.Share.Linkedin false)) }}
<a href="//www.linkedin.com/shareArticle?url={{ .Permalink }}&amp;title={{ .Title }}" target="_blank"
title="Share on LinkedIn">
<i class="iconfont icon-linkedin"></i>
</a>
2019-08-05 15:15:01 +02:00
{{ end }}
{{ if or .Params.Share.Pinterest (and .Site.Params.Share.Pinterest (ne .Params.Share.Pinterest false)) }}
<a href="//www.pinterest.com/pin/create/button/?url={{ .Permalink }}&amp;description={{ .Title }}" target="_blank"
title="Share on Pinterest">
<i class="iconfont icon-pinterest"></i>
</a>
2019-08-05 15:15:01 +02:00
{{ end }}
{{ if or .Params.Share.HackerNews (and .Site.Params.Share.HackerNews (ne .Params.Share.HackerNews false)) }}
<a href="//news.ycombinator.com/submitlink?u={{ .Permalink }}&amp;description={{ .Title }}" target="_blank"
title="Share on Hacker News">
<i class="iconfont icon-ycombinator"></i>
</a>
2019-08-05 15:15:01 +02:00
{{ end }}
{{ if or .Params.Share.Mix (and .Site.Params.Share.Mix (ne .Params.Share.Mix false)) }}
<a href="//mix.com/add?url={{ .Permalink }}&amp;description={{ .Title }}" target="_blank" title="Share on Mix">
<i class="iconfont icon-mix"></i>
2019-08-05 15:15:01 +02:00
</a>
{{ end }}
2019-08-05 15:15:01 +02:00
{{ 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 }}&amp;title={{ .Title }}" target="_blank"
title="Share on Tumblr">
<i class="iconfont icon-tumblr"></i>
2019-08-05 15:15:01 +02:00
</a>
{{ end }}
2019-08-05 15:15:01 +02:00
{{ if or .Params.Share.VKontakte (and .Site.Params.Share.VKontakte (ne .Params.Share.VKontakte false)) }}
<a href="//vk.com/share.php?url={{ .Permalink }}&amp;title={{ .Title }}" target="_blank" title="Share on VKontakte ">
<i class="iconfont icon-vk"></i>
2019-08-05 15:15:01 +02:00
</a>
{{ end }}
2019-08-05 15:15:01 +02:00
{{ if or .Params.Share.Douban (and .Site.Params.Share.Douban (ne .Params.Share.Douban false)) }}
<a href="//www.douban.com/recommend/?url={{ .Permalink }}&amp;title={{ .Title }}" target="_blank"
title="Share on Douban ">
<i class="iconfont icon-douban"></i>
2019-08-05 15:15:01 +02:00
</a>
{{ end }}
2019-08-05 15:15:01 +02:00
{{ 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 }}&amp;appkey=&amp;title={{ .Title }}" target="_blank"
title="Share on Douban ">
<i class="iconfont icon-weibo"></i>
2019-08-05 15:15:01 +02:00
</a>
{{ end }}
{{ end }}