0
ブログを作成しました。私はDisqusをサイトに統合して、コメントを投稿できるようにしたいと考えています。私はDisqusのウェブサイトに記載されている手順を踏襲し、設定変数の設定を開始するまですべてが機能していました。 Disqusの読み込みと表示が停止しました。私はここで何が間違っていたのか分かりません。レールにDisqusを追加する
以下は私のコードです:再探索の数時間後
<div id="disqus_thread"></div>
<script>
var disqus_config = function()
this.page.url = '<%= url_for([@post, {:only_path => false}]) %>'; // Replace PAGE_URL with your page's canonical URL variable
this.page.identifier = '<%= @post.id %>'; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
this.page.title = '<%= @post.title %>';
};
(function() { // DON'T EDIT BELOW THIS LINE
var d = document, s = d.createElement('script');
s.src = '//york-wang.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>