12345678910111213141516171819202122232425262728293031323334353637383940 |
- {% macro comments(article) %}
- {% if DISQUS_SITENAME and SITEURL and article.status != 'draft' %}
- <section>
- {% if article.comments_intro %}
- <p id="comment-message">{{ article.comments_intro }} </p>
- {% elif COMMENTS_INTRO %}
- <p id="comment-message">{{ COMMENTS_INTRO }} </p>
- {% endif %}
- <div class="accordion" id="accordion2">
- <div class="accordion-group">
- <div class="accordion-heading">
- <a class="accordion-toggle disqus-comment-count" data-toggle="collapse" data-parent="#accordion2"
- {% if article.disqus_identifier %}
- data-disqus-identifier="{{ article.disqus_identifier }}"
- {% endif %}
- href="{{ SITEURL }}/{{ article.url }}#disqus_thread">
- Comments
- </a>
- </div>
- <div id="disqus_thread" class="accordion-body collapse">
- <div class="accordion-inner">
- <div class="comments">
- {% from 'disqus_scripts.html' import disqus_comments_script with context %}
- {{ disqus_comments_script(article) }}
- </div>
- </div>
- </div>
- </div>
- </div>
- </section>
- {% endif %}
- {% endmacro %}
- {% macro comments_script(article) %}
- {% if DISQUS_SITENAME and SITEURL and article.status != 'draft' %}
- {% from 'disqus_scripts.html' import disqus_misc_scripts with context %}
- {{ disqus_misc_scripts() }}
- {% endif %}
- {% endmacro %}
|