Skip to content

Commit

Permalink
refactor(comments): rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
talha131 committed Aug 12, 2019
1 parent 15ad43c commit ba2be62
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion templates/_includes/comments.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% macro comments_disqus(article) %}
{% macro comments_section(article) %}

{% from '_includes/_defaults.html' import DISQUS_FILTER with context %}
{% set use_disqus = (not DISQUS_FILTER or article.disqus_filter == "off") and DISQUS_SITENAME and article.disqus_filter != "on" %}
Expand Down
4 changes: 2 additions & 2 deletions templates/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ <h1>{{ title }}</h1>
{{ share_links(article) }}
{% from '_includes/article_author.html' import article_author with context %}
{{ article_author(article) }}
{% from '_includes/comments.html' import comments_disqus with context %}
{{ comments_disqus(article) }}
{% from '_includes/comments.html' import comments_section with context %}
{{ comments_section(article) }}
<hr/>
{% include '_includes/related_posts.html' with context %}
{% if article.prev_article or article.next_article %}
Expand Down
4 changes: 2 additions & 2 deletions templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ <h4>Contents</h4>
{% endif %}

{{ page.content }}
{% from '_includes/comments.html' import comments_disqus with context %}
{{ comments_disqus(page) }}
{% from '_includes/comments.html' import comments_section with context %}
{{ comments_section(page) }}
</div>
<section>
<div class="span2" style="float:right;font-size:0.9em;">
Expand Down

0 comments on commit ba2be62

Please sign in to comment.