aboutsummaryrefslogtreecommitdiffstats
path: root/pelican-bootstrap3/templates/includes/comments.html
diff options
context:
space:
mode:
Diffstat (limited to 'pelican-bootstrap3/templates/includes/comments.html')
-rw-r--r--pelican-bootstrap3/templates/includes/comments.html9
1 files changed, 7 insertions, 2 deletions
diff --git a/pelican-bootstrap3/templates/includes/comments.html b/pelican-bootstrap3/templates/includes/comments.html
index b16517b..94deef4 100644
--- a/pelican-bootstrap3/templates/includes/comments.html
+++ b/pelican-bootstrap3/templates/includes/comments.html
@@ -6,8 +6,13 @@
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = '{{ DISQUS_SITENAME }}'; // required: replace example with your forum shortname
- var disqus_identifier = '{{ article.slug }}';
+ {% 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 }}';
+ var disqus_config = function () {
+ this.language = "{{ DEFAULT_LANG }}";
+ };
/* * * DON'T EDIT BELOW THIS LINE * * */
(function () {
@@ -23,4 +28,4 @@
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
</section>
-{% endif %} \ No newline at end of file
+{% endif %}