From 5d0454a7cd8120fca1c42a47bf0424c68b528ab0 Mon Sep 17 00:00:00 2001 From: ruanyf Date: Fri, 25 Apr 2014 23:35:27 +0800 Subject: [PATCH] edit ditto.js --- js/ditto.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/js/ditto.js b/js/ditto.js index 916fe90..9f1960e 100644 --- a/js/ditto.js +++ b/js/ditto.js @@ -16,6 +16,17 @@ var ditto = { run: initialize }; +var disqusCode = '
' + + ''; + + function initialize() { // initialize sidebar and buttons if (ditto.sidebar) { @@ -185,7 +196,7 @@ function router() { var loading = show_loading(); $.get(path , function(data) { $(ditto.error_id).hide(); - $(ditto.content_id).html(marked(data)); + $(ditto.content_id).html(marked(data)+disqusCode); if ($(ditto.content_id+" h1").text() === ditto.document_title){ document.title = ditto.document_title; } else {