Commit 425892f9 authored by chrissi^'s avatar chrissi^
Browse files

Remove Muut Comments from Blog

parent d2c8fc38
Pipeline #2263 passed with stage
in 22 seconds
......@@ -55,8 +55,6 @@ rdiscount:
- smart
pygments: false # default python pygments have been replaced by pygments.rb
# muut integration for comments
muut_name: Stratum0
# thx doom
flickr:
......
# Title: Muut Comments tag for Jekyll
# Author: Matthew Bass http://www.matthewbass.com
# Description: Easily output a Muut comments section for a blog post
#
# Syntax {% muut_comments %}
#
# Output:
# <a class="muut" title="Page title" href="https://api.muut.it/site/page#title"></a>
#
class MuutCommentsTag < Liquid::Tag
def initialize(tag_name, muut_name, tokens)
super
@muut_name = muut_name
end
def render(context)
muut_name = context.environments.first['site']['muut_name']
page_title = context.environments.first['page']['title']
page_url = anchorize(context.environments.first['page']['url'])
%Q{<a class="muut" title="#{page_title}" data-show_title="false" href="https://muut.com/i/#{muut_name}/blog#{page_url}"></a>}
end
def anchorize(url)
parts = url.split("/").compact
last = parts.pop
parts.join("/") + "#" + last
end
end
Liquid::Template.register_tag('muut_comments', MuutCommentsTag)
<link rel="stylesheet" type="text/css" href="//cdn.muut.com/1/moot.css" />
<script src="//cdn.muut.com/1/moot.min.js"></script>
......@@ -25,7 +25,6 @@
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="{{ root_url }}/javascripts/octopress.js" type="text/javascript"></script>
{% include custom/fancybox_head.html %}
{% include custom/muut_head.html %}
{% include custom/head.html %}
{% include google_analytics.html %}
</head>
......@@ -25,17 +25,6 @@ single: true
</p>
</footer>
</article>
{% if site.muut_name and page.comments == true %}
<section>
{% muut_comments %}
</section>
{% endif %}
{% if site.disqus_short_name and page.comments == true %}
<section>
<h1>Comments</h1>
<div id="disqus_thread" aria-live="polite">{% include post/disqus_thread.html %}</div>
</section>
{% endif %}
</div>
{% unless page.sidebar == false %}
<aside class="sidebar">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment