-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build at YYYY-11-2024年11月11日 17:13:40 +1
- Loading branch information
Showing
3 changed files
with
119 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,6 +83,21 @@ <h1><img id='error' src='https://gcore.jsdelivr.net/gh/cdn-x/[email protected]/ | |
</article> | ||
|
||
|
||
<div class="related-wrap md-text" id="comments"> | ||
<section class='header cmt-title cap theme'> | ||
<p>快来参与讨论吧~</p> | ||
|
||
</section> | ||
<section class='body cmt-body giscus'> | ||
|
||
|
||
<svg class="loading" style="vertical-align:middle;fill:currentColor;overflow:hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2709"><path d="M832 512c0-176-144-320-320-320V128c211.2 0 384 172.8 384 384h-64zM192 512c0 176 144 320 320 320v64C300.8 896 128 723.2 128 512h64z" p-id="2710"></path></svg> | ||
|
||
<div id="giscus" src="https://giscus.app/client.js" data-repo="KyonQi/KyonQi.github.io" data-repo-id="R_kgDOHSwJcA" data-category="Announcements" data-category-id="DIC_kwDOHSwJcM4CkLB3" data-mapping="pathname" data-strict="0" data-reactions-enabled="1" data-emit-metadata="0" data-input-position="top" data-theme="preferred_color_scheme" data-lang="zh-CN" data-loading="lazy" crossorigin="anonymous"></div> | ||
|
||
</section> | ||
</div> | ||
|
||
|
||
|
||
<footer class="page-footer footnote"><hr><div class="text"><p>本站由 <a href="/">Qi</a> 使用 <a target="_blank" rel="noopener" href="https://github.com/xaoxuu/hexo-theme-stellar/tree/1.29.1">Stellar 1.29.1</a> 主题创建。<br>本博客所有文章除特别声明外,均采用 <a target="_blank" rel="noopener" href="https://creativecommons.org/licenses/by-nc-sa/4.0/">CC BY-NC-SA 4.0</a> 许可协议,转载请注明出处。</p> | ||
|
@@ -411,6 +426,30 @@ <h1><img id='error' src='https://gcore.jsdelivr.net/gh/cdn-x/[email protected]/ | |
|
||
<!-- optional --> | ||
|
||
<script type="module"> | ||
const el = document.querySelector('#comments #giscus'); | ||
util.viewportLazyload(el, load_discus, false); | ||
|
||
function load_discus() { | ||
if (!el) return; | ||
try { | ||
el.innerHTML = ''; | ||
} catch (error) { | ||
console.error(error); | ||
} | ||
const script = document.createElement('script'); | ||
script.async = true; | ||
for (const key of Object.keys(el.attributes)) { | ||
const attr = el.attributes[key]; | ||
if (['class', 'id'].includes(attr.name) === false) { | ||
script.setAttribute(attr.name, attr.value); | ||
} | ||
} | ||
el.appendChild(script); | ||
} | ||
</script> | ||
|
||
|
||
|
||
|
||
<script defer> | ||
|