瀏覽代碼

Fix double ouput of 'comments powered by Disqus.'

If JavaScript is disabled in a web-browser, the message 'comments powered
by Disqus' is doubled.

This issue occurs because the output of the text is additionally appears in
the <noscript> area for JavaScript.

The text in the <noscript> area is deleted so that the Information
appears correct when JavaScript is disabled.
pull/7/head
dataCobra 4 年之前
父節點
當前提交
6a8eece7de
共有 1 個檔案被更改,包括 1 行新增2 行删除
  1. +1
    -2
      layouts/partials/disqus.html

+ 1
- 2
layouts/partials/disqus.html 查看文件

@@ -12,6 +12,5 @@
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by
Disqus.</a></noscript>
<noscript>Please enable JavaScript to view the </a></noscript>
<a href="http://disqus.com/" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>

Loading…
取消
儲存