diff options
Diffstat (limited to '_layouts/post.html')
-rw-r--r-- | _layouts/post.html | 68 |
1 files changed, 4 insertions, 64 deletions
diff --git a/_layouts/post.html b/_layouts/post.html index a6861f5..bd8c381 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -45,52 +45,6 @@ layout: default <p class="rss-subscribe text"><strong>Subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></strong></p> </section> -<section class="share"> - <span>Share: </span> - {% for social in site.social %} - {% capture full_url %}{{ site.url }}{{ site.baseurl }}{{ page.url }}{% endcapture %} - {% if social.name == "Twitter" and social.share == true %} - <a href="//twitter.com/share?text={{ page.title | cgi_escape }}&url={{ full_url | cgi_escape}}&via={{social.username}}" - onclick="window.open(this.href, '{{ social.icon }}-share', 'width=550,height=255');return false;"> - <i class="fa fa-{{ social.icon | remove_first: '-square' }}-square fa-lg"></i> - </a> - {% endif %} - {% if social.name == "Facebook" and social.share == true %} - <a href="//www.facebook.com/sharer.php?t={{ page.title | cgi_escape }}&u={{ full_url | cgi_escape}}" - onclick="window.open(this.href, '{{ social.icon }}-share', 'width=550,height=255');return false;"> - <i class="fa fa-{{ social.icon | remove_first: '-square' }}-square fa-lg"></i> - </a> - {% endif %} - {% if social.name == "Google+" and social.share == true %} - <a href="//plus.google.com/share?title={{ page.title | cgi_escape }}&url={{ full_url | cgi_escape}}" - onclick="window.open(this.href, '{{ social.icon }}-share', 'width=550,height=255');return false;"> - <i class="fa fa-{{ social.icon | remove_first: '-square' }}-square fa-lg"></i> - </a> - {% endif %} - {% if social.name == "LinkedIn" and social.share == true %} - <a href="//www.linkedin.com/shareArticle?mini=true&url={{ full_url | cgi_escape}}" - onclick="window.open(this.href, '{{ social.icon }}-share', 'width=550,height=255');return false;"> - <i class="fa fa-{{ social.icon | remove_first: '-square' }}-square fa-lg"></i> - </a> - {% endif %} - {% if social.name == "Pinterest" and social.share == true %} - <a href="//www.pinterest.com/pin/create/button/?description={{ page.title | cgi_escape }}&url={{ full_url | cgi_escape}}&media={{ site.url }}{% if page.cover %}{{ page.cover | prepend: site.baseurl }}{% elsif site.cover %}{{ site.cover | prepend: site.baseurl }}{% else %}{{ site.logo | prepend: site.baseurl }}{% endif %}" - onclick="window.open(this.href, '{{ social.icon }}-share', 'width=550,height=255');return false;"> - <i class="fa fa-{{ social.icon | remove_first: '-square' }}-square fa-lg"></i> - </a> - {% endif %} - {% if social.name == "Reddit" and social.share == true %} - <a href="//www.reddit.com/submit" onclick="window.location = '//www.reddit.com/submit?url=' + encodeURIComponent('{{ full_url }}') + '&title={{page.title}}'; return false"> - <i class="fa fa-{{ social.icon | remove_first: '-square' }}-square fa-lg"></i> - </a> - {% endif %} - {% if social.name == "Hacker News" and social.share == true %} - <a href="//news.ycombinator.com/submitlink" onclick="window.location = '//news.ycombinator.com/submitlink?u=' + encodeURIComponent('{{ full_url }}') + '&t={{page.title}}'; return false"> - <i class="fa fa-{{ social.icon | remove_first: '-square' }} fa-lg"></i> - </a> - {% endif %} - {% endfor %} -</section> {% if site.inter_post_navigation == true %} <section class="post-navigation"> <span class="prev-post"> @@ -118,25 +72,11 @@ layout: default </section> {% endif %} -{% if site.disqus_shortname %} -{% unless page.disqus_disabled %} -<section class="disqus"> - <div id="disqus_thread"></div> - <script type="text/javascript"> - var disqus_shortname = '{{ site.disqus_shortname }}'; - - /* * * DON'T EDIT BELOW THIS LINE * * */ - (function() { - var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; - dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; - (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); - })(); - </script> - <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> - <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a> +<section class="comments"> + <div id="comments-thread"></div> + <script id="comments-client" type="module" src="http://127.0.0.1:5000/static/js/client.js"></script> + <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments.</a></noscript> </section> -{% endunless %} -{% endif %} </div> </div> |