From c2dfee8c9c08312d5f431f967735ba9f9968f7bc Mon Sep 17 00:00:00 2001 From: ruanyf Date: Fri, 25 Apr 2014 23:41:06 +0800 Subject: [PATCH] edit ditto.js --- js/ditto.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/ditto.js b/js/ditto.js index 9f1960e..9cc343f 100644 --- a/js/ditto.js +++ b/js/ditto.js @@ -16,7 +16,7 @@ var ditto = { run: initialize }; -var disqusCode = '
' +var disqusCode = '

留言

' + ''; +var disqus_identifier; function initialize() { // initialize sidebar and buttons @@ -181,6 +182,8 @@ function show_loading() { function router() { var path = location.hash.replace("#", "./"); + disqus_identifier = path; + // default page if hash is empty if (location.pathname === "/index.html") { path = location.pathname.replace("index.html", ditto.index);