Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
stratum0
stratum0-blog
Commits
425892f9
Commit
425892f9
authored
Feb 17, 2022
by
chrissi^
Browse files
Remove Muut Comments from Blog
parent
d2c8fc38
Pipeline
#2263
passed with stage
in 22 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
_config.yml
View file @
425892f9
...
...
@@ -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
:
...
...
plugins/muut_comments.rb
deleted
100644 → 0
View file @
d2c8fc38
# 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
)
source/_includes/custom/muut_head.html
deleted
100644 → 0
View file @
d2c8fc38
<link
rel=
"stylesheet"
type=
"text/css"
href=
"//cdn.muut.com/1/moot.css"
/>
<script
src=
"//cdn.muut.com/1/moot.min.js"
></script>
source/_includes/head.html
View file @
425892f9
...
...
@@ -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>
source/_layouts/post.html
View file @
425892f9
...
...
@@ -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"
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment