fix(disqus): move to head
This commit is contained in:
parent
3e7918255b
commit
6d9ed50e60
@ -13,8 +13,8 @@
|
||||
|
||||
{% if page.math %}
|
||||
<link rel='stylesheet' href='{{ "/css/katex.min.css" | prepend: site.baseurl }}'>
|
||||
<script rel='stylesheet' src='{{ "/js/katex.min.js" | prepend: site.baseurl }}'></script>
|
||||
<script rel='stylesheet' src='{{ "/js/auto-render.min.js" | prepend: site.baseurl }}'></script>
|
||||
<script src='{{ "/js/katex.min.js" | prepend: site.baseurl }}'></script>
|
||||
<script src='{{ "/js/auto-render.min.js" | prepend: site.baseurl }}'></script>
|
||||
|
||||
<script>
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
@ -39,5 +39,15 @@
|
||||
alert('Got a message from the other tab:\n' + message.data);
|
||||
});
|
||||
</script>
|
||||
|
||||
<script>
|
||||
var disqus_shortname = 'dibaiee';
|
||||
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
</head>
|
||||
|
||||
|
@ -19,15 +19,6 @@ layout: default
|
||||
|
||||
{% include share.html %}
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'dibaiee';
|
||||
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
|
||||
<script src="/js/heading-links.js"></script>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user