diff --git a/js/ditto.js b/js/ditto.js index 3cf0728..87c3f4a 100644 --- a/js/ditto.js +++ b/js/ditto.js @@ -18,9 +18,9 @@ var ditto = { var disqusCode = '

留言

'; -var disqus_identifier; -var disqus_title; -var disqus_url; +var disqus_identifier=location.hash?location.hash:'index'; +var disqus_title=document.title; +var disqus_url='http://'+location.host+'/'+location.hash.replace("#", ""); function initialize() { // initialize sidebar and buttons @@ -204,6 +204,7 @@ function router() { reload: true, config: function () { window.disqus_identifier = location.hash; + window.disqus_title = document.title; window.disqus_url = 'http://'+location.host+'/'+location.hash.replace("#", ""); } });