Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/blog/single.html')
-rw-r--r--layouts/blog/single.html10
1 files changed, 9 insertions, 1 deletions
diff --git a/layouts/blog/single.html b/layouts/blog/single.html
index bb71683..b4703b8 100644
--- a/layouts/blog/single.html
+++ b/layouts/blog/single.html
@@ -23,26 +23,34 @@
{{ if .Site.Params.sharebuttons }}
<div class="blog-share">
Share this:
+ {{ if .Site.Params.sharetwitter }}
<a class="twitter-share-button" href="https://twitter.com/intent/tweet?text=Read%20{{ .Title }}%20{{ .Permalink }}"
onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;">
<i class="fa fa-twitter"></i>
<span class="hidden">Twitter</span>
</a>
+ {{ end }}
+ {{ if .Site.Params.sharefacebook }}
<a class="icon-facebook" href="https://www.facebook.com/sharer/sharer.php?u={{ .Permalink }}"
onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;">
<i class="fa fa-facebook"></i>
<span class="hidden">Facebook</span>
</a>
+ {{ end }}
+ {{ if .Site.Params.sharepinterest }}
<a class="icon-pinterest" href="http://pinterest.com/pin/create/button/?url={{ .Permalink }}{{ if .Params.pinterestmedia }}&amp;media={{ .Site.BaseURL }}{{ .Params.pinterestmedia }}{{ end }}&amp;description={{ .Title | safeHTML}}"
onclick="window.open(this.href, 'pinterest-share','width=580,height=296');return false;">
<i class="fa fa-pinterest"></i>
<span class="hidden">Pinterest</span>
</a>
+ {{ end }}
+ {{ if .Site.Params.sharegoogleplus }}
<a class="icon-google-plus" href="https://plus.google.com/share?url={{ .Permalink }}"
onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;">
- <i class="fa fa-linkedin"></i>
+ <i class="fa fa-google-plus"></i>
<span class="hidden">Google+</span>
</a>
+ {{ end }}
</div>
{{ end }}