aboutsummaryrefslogtreecommitdiffstats
path: root/pelican-bootstrap3/templates/includes/comments.html
diff options
context:
space:
mode:
authorDaan Debie <d.debie@thenewmotion.com>2014-08-21 18:45:11 +0200
committerDaan Debie <d.debie@thenewmotion.com>2014-08-21 18:45:11 +0200
commit352965e0445417584f6c3fb3e8fef5d87db4f37f (patch)
treedb9a4e7f5b760da37c0b506a450ca809496fbcc7 /pelican-bootstrap3/templates/includes/comments.html
parenta928687830876af8c919606bae47195af65bc82d (diff)
downloadpelican-themes-352965e0445417584f6c3fb3e8fef5d87db4f37f.tar.gz
Updated pelican-bootstrap3 to the latest version
Diffstat (limited to 'pelican-bootstrap3/templates/includes/comments.html')
-rw-r--r--pelican-bootstrap3/templates/includes/comments.html18
1 files changed, 14 insertions, 4 deletions
diff --git a/pelican-bootstrap3/templates/includes/comments.html b/pelican-bootstrap3/templates/includes/comments.html
index 94deef4..eade006 100644
--- a/pelican-bootstrap3/templates/includes/comments.html
+++ b/pelican-bootstrap3/templates/includes/comments.html
@@ -1,15 +1,25 @@
{% if DISQUS_SITENAME %}
- <hr />
+ <hr/>
<section class="comments" id="comments">
<h2>Comments</h2>
+
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = '{{ DISQUS_SITENAME }}'; // required: replace example with your forum shortname
- {% if not DISQUS_NO_ID %}
- var disqus_identifier = '{{ article.date|strftime('%Y-%m-') ~ article.slug if DISQUS_ID_PREFIX_SLUG else article.slug }}';
+
+ {% if article %}
+ {% if not DISQUS_NO_ID %}
+ var disqus_identifier = '{{ article.date|strftime('%Y-%m-') ~ article.slug if DISQUS_ID_PREFIX_SLUG else article.slug }}';
+ {% endif %}
+ var disqus_url = '{{ SITEURL }}/{{ article.url }}';
+ {% elif page %}
+ {% if not DISQUS_NO_ID %}
+ var disqus_identifier = 'page-{{ page.slug }}';
+ {% endif %}
+ var disqus_url = '{{ SITEURL }}/{{ page.url }}';
{% endif %}
- var disqus_url = '{{ SITEURL }}/{{ article.url }}';
+
var disqus_config = function () {
this.language = "{{ DEFAULT_LANG }}";
};