Disabled comments

This commit is contained in:
Felipe M 2019-11-28 16:26:58 +00:00
parent a1c8632e5f
commit c28c04002e
2 changed files with 4 additions and 10 deletions

View file

@ -7,15 +7,9 @@
{% block main_content %} {% block main_content %}
{{ render_blog_post(this) }} {{ render_blog_post(this) }}
{% if this.comments_enabled %} <div class="center block-info">
<div class="comments center block"> Comments have been disabled in this blog, if you want to contact me directly please <a href="{{ '/contact'|url }}">go ahead</a>!
<div id="commento"></div> </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 %}
{% endblock %} {% endblock %}
{% block endbody %} {% block endbody %}

View file

@ -3,7 +3,7 @@
<article class="blog-post center"> <article class="blog-post center">
<h1><a href="{{ post|url }}">{{ post.title }}</a></h1> <h1><a href="{{ post|url }}">{{ post.title }}</a></h1>
<div class="info"> <div class="info">
Published on {{ post.pub_date }} with <a href="{{ post|url }}#commento">no comments.</a> Published on {{ post.pub_date }}
</div> </div>
<div class="content"> <div class="content">
{% if from_index and summary|length > 1 %} {% if from_index and summary|length > 1 %}