_includes/share_bar.html in minima-rock-0.8.2 vs _includes/share_bar.html in minima-rock-0.9.0
- old
+ new
@@ -1,69 +1,69 @@
-{%- if page.share != false and jekyll.environment == "production" and site.data.share -%}
-<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
-<div id="share-bar">
- <div class="share-buttons">
- {% if site.data.share.facebook %}
- <a href="https://www.facebook.com/sharer/sharer.php?u={{ site.url }}{{ site.baseurl }}{{ page.url }}"
- onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"
- title="Share on Facebook" >
- <i class="fa fa-facebook-official share-button"></i>
- </a>
- {% endif %}
-
- {% if site.data.share.twitter %}
- <a href="https://twitter.com/intent/tweet?text={{ page.title }}&url={{ site.url }}{{ site.baseurl }}{{ page.url }}"
- onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"
- title="Share on Twitter" >
- <i class="fa fa-twitter share-button"></i>
- </a>
- {% endif %}
-
- {% if site.data.share.google %}
- <a href="https://plus.google.com/share?url={{ site.url }}{{ site.baseurl }}{{ page.url }}"
- onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"
- title="Share on Google+" >
- <i class="fa fa-google-plus share-button"></i>
- </a>
- {% endif %}
-
- {% if site.data.share.pinterest %}
- <a href="https://www.pinterest.com/pin/create/button/?url={{ site.url }}{{ site.baseurl }}{{ page.url }}"
- onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=900,height=500,toolbar=1,resizable=0'); return false;"
- title="Share on Pinterest" >
- <i class="fa fa-pinterest-p share-button"></i>
- </a>
- {% endif %}
-
- {% if site.data.share.tumblr %}
- <a href="https://www.tumblr.com/share/link?url={{ site.url }}{{ site.baseurl }}{{ page.url }}"
- onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=900,height=500,toolbar=1,resizable=0'); return false;"
- title="Share on Tumblr" >
- <i class="fa fa-tumblr share-button"></i>
- </a>
- {% endif %}
-
- {% if site.data.share.reddit %}
- <a href="http://www.reddit.com/submit?url={{ site.url }}{{ site.baseurl }}{{ page.url }}"
- onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=900,height=500,toolbar=1,resizable=0'); return false;"
- title="Share on Reddit" >
- <i class="fa fa-reddit-alien share-button"></i>
- </a>
- {% endif %}
-
- {% if site.data.share.linkedin %}
- <a href="https://www.linkedin.com/shareArticle?mini=true&url={{ site.url }}{{ site.baseurl }}{{ page.url }}&title={{ page.title }}&summary={{ page.description }}&source={{ site.title }}"
- onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"
- title="Share on LinkedIn" >
- <i class="fa fa-linkedin share-button"></i>
- </a>
- {% endif %}
-
- {% if site.data.share.mail %}
- <a href="mailto:?subject={{ page.title }}&body=Check out this site {{ site.url }}{{ site.baseurl }}{{ page.url }}"
- title="Share via Email" >
- <i class="fa fa-envelope share-button"></i>
- </a>
- {% endif %}
- </div>
-</div>
+{%- if page.share != false and jekyll.environment == "production" and site.data.share -%}
+<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
+<div id="share-bar">
+ <div class="share-buttons">
+ {% if site.data.share.facebook %}
+ <a href="https://www.facebook.com/sharer/sharer.php?u={{ site.url }}{{ site.baseurl }}{{ page.url }}"
+ onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"
+ title="Share on Facebook" >
+ <i class="fa fa-facebook-official share-button"></i>
+ </a>
+ {% endif %}
+
+ {% if site.data.share.twitter %}
+ <a href="https://twitter.com/intent/tweet?text={{ page.title }}&url={{ site.url }}{{ site.baseurl }}{{ page.url }}"
+ onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"
+ title="Share on Twitter" >
+ <i class="fa fa-twitter share-button"></i>
+ </a>
+ {% endif %}
+
+ {% if site.data.share.google %}
+ <a href="https://plus.google.com/share?url={{ site.url }}{{ site.baseurl }}{{ page.url }}"
+ onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"
+ title="Share on Google+" >
+ <i class="fa fa-google-plus share-button"></i>
+ </a>
+ {% endif %}
+
+ {% if site.data.share.pinterest %}
+ <a href="https://www.pinterest.com/pin/create/button/?url={{ site.url }}{{ site.baseurl }}{{ page.url }}"
+ onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=900,height=500,toolbar=1,resizable=0'); return false;"
+ title="Share on Pinterest" >
+ <i class="fa fa-pinterest-p share-button"></i>
+ </a>
+ {% endif %}
+
+ {% if site.data.share.tumblr %}
+ <a href="https://www.tumblr.com/share/link?url={{ site.url }}{{ site.baseurl }}{{ page.url }}"
+ onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=900,height=500,toolbar=1,resizable=0'); return false;"
+ title="Share on Tumblr" >
+ <i class="fa fa-tumblr share-button"></i>
+ </a>
+ {% endif %}
+
+ {% if site.data.share.reddit %}
+ <a href="http://www.reddit.com/submit?url={{ site.url }}{{ site.baseurl }}{{ page.url }}"
+ onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=900,height=500,toolbar=1,resizable=0'); return false;"
+ title="Share on Reddit" >
+ <i class="fa fa-reddit-alien share-button"></i>
+ </a>
+ {% endif %}
+
+ {% if site.data.share.linkedin %}
+ <a href="https://www.linkedin.com/shareArticle?mini=true&url={{ site.url }}{{ site.baseurl }}{{ page.url }}&title={{ page.title }}&summary={{ page.description }}&source={{ site.title }}"
+ onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"
+ title="Share on LinkedIn" >
+ <i class="fa fa-linkedin share-button"></i>
+ </a>
+ {% endif %}
+
+ {% if site.data.share.mail %}
+ <a href="mailto:?subject={{ page.title }}&body=Check out this site {{ site.url }}{{ site.baseurl }}{{ page.url }}"
+ title="Share via Email" >
+ <i class="fa fa-envelope share-button"></i>
+ </a>
+ {% endif %}
+ </div>
+</div>
{%- endif -%}
\ No newline at end of file