Disqus -> Commento
This commit is contained in:
parent
921e0e088c
commit
2988b5f18a
5 changed files with 9 additions and 32 deletions
|
@ -3,7 +3,7 @@
|
|||
<article class="blog-post center">
|
||||
<h1><a href="{{ post|url }}">{{ post.title }}</a></h1>
|
||||
<div class="info">
|
||||
Published on {{ post.pub_date }} with <a href="{{ post|url }}#disqus_thread">no comments.</a>
|
||||
Published on {{ post.pub_date }} with <a href="{{ post|url }}#commento">no comments.</a>
|
||||
</div>
|
||||
<div class="content">
|
||||
{% if from_index and summary|length > 1 %}
|
||||
|
@ -17,6 +17,6 @@
|
|||
<h3>Edits</h3>
|
||||
{{ post.edit_comment }}
|
||||
{% endif %}
|
||||
<!--<hr class="light"> -->
|
||||
<hr class="light">
|
||||
</article>
|
||||
{% endmacro %}
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
{% macro disqus_comments_script() -%}
|
||||
<script type="text/javascript">
|
||||
(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>
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro disqus_count_script() %}
|
||||
<script type="text/javascript">
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
{%- endmacro %}
|
Loading…
Add table
Add a link
Reference in a new issue