diff options
author | Dylan Thomas <dylan.thomas@gmail.com> | 2020-09-21 19:35:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-21 19:35:36 +0300 |
commit | b90998ee43b058c081c615a59647f73c536127bf (patch) | |
tree | 3b4b0b4ef23674702f75f7dee7066365c82a5a4f | |
parent | dbaf34f06c8e7236cd281106ef251733f2a09faa (diff) |
simplified social display logic (#86)
-rw-r--r-- | layouts/partials/post-footer.html | 8 |
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> |