add giscus

This commit is contained in:
James Feng Cao 2023-05-06 09:56:44 +08:00
parent dfc14dae10
commit a9bdb08c77
68 changed files with 1428 additions and 1020 deletions

View file

@ -69,21 +69,27 @@
support .js files under &#39;css&#39; folder<br>
<pre></pre>
</p>
<script data-repo="torappinfo/uweb"
data-repo-id="MDEwOlJlcG9zaXRvcnkzMDIyMDU3MjE="
data-category="Announcements"
data-category-id="DIC_kwDOEgNLGc4CQjsh"
data-mapping="pathname"
data-strict="0"
data-reactions-enabled="1"
data-emit-metadata="0"
data-input-position="top"
data-theme="light"
data-lang="en"
data-loading="lazy"
crossorigin="anonymous" async>
if(location.host=='torappinfo.github.io')
document.currentScript.setAttribute('src', 'https://giscus.app/client.js');
<script id='jsgiscus'
src='https://giscus.app/client.js'
data-repo="torappinfo/uweb"
data-repo-id="MDEwOlJlcG9zaXRvcnkzMDIyMDU3MjE="
data-category="Announcements"
data-category-id="DIC_kwDOEgNLGc4CQjsh"
data-mapping="pathname"
data-strict="0"
data-reactions-enabled="1"
data-emit-metadata="0"
data-input-position="top"
data-theme="light"
data-lang="en"
data-loading="lazy"
crossorigin="anonymous" async disabled>
</script>
<script>
if(location.host=='torappinfo.github.io'){
let script = document.getElementById('jsgiscus');
script.disabled = false;
}
</script>
</body>