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

github.com/dplesca/purehugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDragos Plesca <dragos.plesca@gmail.com>2016-08-08 15:36:31 +0300
committerDragos Plesca <dragosplesca@gmail.com>2016-08-08 15:39:40 +0300
commit06811c8dd52901e801e514eac94eeec129596418 (patch)
tree03f4a33350a21d670ec6e3bf3509e3f7e0648e59
parent6fcb1fff2774ee4005a4252fb5f7a4f918899ce8 (diff)
Make facebook and google plus optional
in post share widget. Fixes #18. Thanks to @MangelMaxime
-rw-r--r--layouts/_default/single.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 99cb4de..478af49 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -28,8 +28,12 @@
<div class="post-share">
<div class="post-share-links">
<h4 style="">Share</h4>
+ {{ if isset .Site.Params "facebook" }}
<a href="#" data-type="facebook" data-url="{{ .Permalink }}" data-title="{{ .Title }}" data-description="{{ .Description }}" data-media="" class="prettySocial fa fa-facebook"></a>
+ {{ end }}
+ {{ if isset .Site.Params "googleplus" }}
<a href="#" data-type="googleplus" data-url="{{ .Permalink }}" data-description="{{ .Description }}" class="prettySocial fa fa-google-plus"></a>
+ {{ end }}
{{ if isset .Site.Params "twitter" }}
<a href="#" data-type="twitter" data-url="{{ .Permalink }}" data-description="{{ .Description }}" data-via="{{ .Site.Params.twitter }}" class="prettySocial fa fa-twitter"></a>
{{ end }}