Added disqus developer mode functionality

Signed-off-by: Brandon Mathis <brandon@imathis.com>
This commit is contained in:
Nathan Manzi 2012-01-14 14:44:39 +08:00 committed by Brandon Mathis
parent c06ba58466
commit e334e832de
2 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@
{% if site.disqus_short_name and page.comments != false %} {% if site.disqus_short_name and page.comments != false %}
<script type="text/javascript"> <script type="text/javascript">
var disqus_shortname = '{{ site.disqus_short_name }}'; var disqus_shortname = '{{ site.disqus_short_name }}';
var disqus_developer = '{{ site.disqus_developer }}';
{% if page.comments == true %} {% if page.comments == true %}
{% comment %} `page.comments` can be only be set to true on pages/posts, so we embed the comments here. {% endcomment %} {% comment %} `page.comments` can be only be set to true on pages/posts, so we embed the comments here. {% endcomment %}
// var disqus_developer = 1; // var disqus_developer = 1;

View File

@ -99,6 +99,7 @@ delicious_count: 3
# Disqus Comments # Disqus Comments
disqus_short_name: disqus_short_name:
disqus_show_comment_count: false disqus_show_comment_count: false
disqus_developer: 0
# Google Analytics # Google Analytics
google_analytics_tracking_id: google_analytics_tracking_id: