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); });