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

github.com/jbub/ghostwriter.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Thomas <dylan.thomas@gmail.com>2020-09-21 19:35:36 +0300
committerGitHub <noreply@github.com>2020-09-21 19:35:36 +0300
commitb90998ee43b058c081c615a59647f73c536127bf (patch)
tree3b4b0b4ef23674702f75f7dee7066365c82a5a4f
parentdbaf34f06c8e7236cd281106ef251733f2a09faa (diff)
simplified social display logic (#86)
-rw-r--r--layouts/partials/post-footer.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/layouts/partials/post-footer.html b/layouts/partials/post-footer.html
index fd62181..3effc75 100644
--- a/layouts/partials/post-footer.html
+++ b/layouts/partials/post-footer.html
@@ -11,7 +11,7 @@
{{ end}}
<div class="share">
- {{ if or (not (isset .Site.Params "sharetwitter")) .Site.Params.shareTwitter }}
+ {{ if .Site.Params.shareTwitter }}
<a class="icon-twitter" href="https://twitter.com/share?text={{ .Title }}&url={{ .Permalink }}"
onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;">
<i class="fa fa-twitter"></i>
@@ -19,7 +19,7 @@
</a>
{{ end }}
- {{ if or (not (isset .Site.Params "sharefacebook")) .Site.Params.shareFacebook }}
+ {{ 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>
@@ -27,7 +27,7 @@
</a>
{{ end }}
- {{ if or (not (isset .Site.Params "sharegoogleplus")) .Site.Params.shareGooglePlus }}
+ {{ 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-google-plus"></i>
@@ -42,4 +42,4 @@
</a>
{{ end }}
</div>
-</footer> \ No newline at end of file
+</footer>