Disqus -> Commento
This commit is contained in:
parent
921e0e088c
commit
2988b5f18a
5 changed files with 9 additions and 32 deletions
|
@ -1,7 +1,6 @@
|
|||
{% extends "blog/_base.html" %}
|
||||
{% from "macros/blog.html" import render_blog_post %}
|
||||
{% from "macros/pagination.html" import render_pagination %}
|
||||
{% from "macros/comments.html" import disqus_count_script %}
|
||||
|
||||
{% block main_content %}
|
||||
{% for child in this.pagination.items %}
|
||||
|
@ -13,5 +12,4 @@
|
|||
|
||||
{% block endbody %}
|
||||
{{ super() }}
|
||||
{{ disqus_count_script() }}
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{% extends "blog/_base.html" %}
|
||||
{% from "macros/blog.html" import render_blog_post %}
|
||||
{% from "macros/comments.html" import disqus_comments_script %}
|
||||
|
||||
{% block body_class %}blog post{% endblock %}
|
||||
|
||||
|
@ -8,16 +7,17 @@
|
|||
|
||||
{% block main_content %}
|
||||
{{ render_blog_post(this) }}
|
||||
{#% if this.comments_enabled %}
|
||||
<div class="comments center" id="disqus_thread"></div>
|
||||
{% if this.comments_enabled %}
|
||||
<div class="comments center block">
|
||||
<div id="commento"></div>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="center block-info">
|
||||
Comments have been disabled in this post, if you want to contact me please <a href="{{ '/contact'|url }}">go ahead</a>!
|
||||
</div>
|
||||
{% endif %#}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block endbody %}
|
||||
{{ super() }}
|
||||
{# {{ disqus_comments_script() }} #}
|
||||
{% endblock %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue