aboutsummaryrefslogtreecommitdiffstats
path: root/pelican-bootstrap3/templates/includes/comments.html
diff options
context:
space:
mode:
authorDaan Debie <debie.daan@gmail.com>2014-01-27 23:38:37 +0100
committerDaan Debie <debie.daan@gmail.com>2014-01-27 23:39:08 +0100
commitfd1a4eaba46c1def74bd6905bce15c61bb326ed5 (patch)
treea768a44479fcec3e04307f4035b30a689ae6d826 /pelican-bootstrap3/templates/includes/comments.html
parentc35cbabcaf4807b9474203a2fbd809883b08ad50 (diff)
downloadpelican-themes-fd1a4eaba46c1def74bd6905bce15c61bb326ed5.zip
pelican-themes-fd1a4eaba46c1def74bd6905bce15c61bb326ed5.tar.gz
pelican-themes-fd1a4eaba46c1def74bd6905bce15c61bb326ed5.tar.bz2
Updated pelican-bootstrap to v1.2
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 %}