Skip to content

Commit

Permalink
refactor(comments): rename macro
Browse files Browse the repository at this point in the history
  • Loading branch information
talha131 committed Aug 12, 2019
1 parent 311a7d9 commit e8c5578
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
Expand Up @@ -51,7 +51,7 @@ <h6 style="display:none;">Comments</h6>
{% endif %}
{% endmacro %}

{% macro comments_common_scripts() %}
{% macro comments_script() %}
<script>
(function () {
if (window.location.hash.match(/^#comment-\d+$/)) {
Expand Down
4 changes: 2 additions & 2 deletions templates/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ <h4>Tags</h4>
{{ super() }}
{% from '_includes/disqus_scripts.html' import comments_script_disqus with context %}
{{ comments_script_disqus(article) }}
{% from '_includes/comments.html' import comments_common_scripts with context %}
{{ comments_common_scripts() }}
{% from '_includes/comments.html' import comments_script with context %}
{{ comments_script() }}
{% include '_includes/photos_footer.html' %}
{% endblock script %}
4 changes: 2 additions & 2 deletions templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ <h4>Contents</h4>
{{ super() }}
{% from '_includes/disqus_scripts.html' import comments_script_disqus with context %}
{{ comments_script_disqus(page) }}
{% from '_includes/comments.html' import comments_common_scripts with context %}
{{ comments_common_scripts() }}
{% from '_includes/comments.html' import comments_script with context %}
{{ comments_script() }}
{% endblock script %}

0 comments on commit e8c5578

Please sign in to comment.