From d300fb2db95710515f676b9ac758ce4b0528c644 Mon Sep 17 00:00:00 2001 From: ruanyf Date: Sat, 26 Apr 2014 01:12:40 +0800 Subject: [PATCH] edit ditto.js --- js/ditto.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/js/ditto.js b/js/ditto.js index a4c5c68..1326bf3 100644 --- a/js/ditto.js +++ b/js/ditto.js @@ -208,6 +208,14 @@ function router() { normalize_paths(); create_page_anchors(); + DISQUS.reset({ + reload: true, + config: function () { + this.page.identifier = location.hash; + this.page.url = location.href; + } + }); + $('#content code').map(function() { Prism.highlightElement(this); });