Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
jkjoy committed Oct 28, 2024
1 parent 4c348d7 commit e575a5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/components/ArtalkComments.astro
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
---
// 引入Artalk的CSS和JS文件
---

<div id="Comments"></div>

<script>
document.addEventListener("DOMContentLoaded", function() {
// 初始化Artalk
Expand All @@ -12,7 +10,6 @@
server: 'https://artalk.loliko.cn/',
site: 'ittst',
});

// 使用swup的contentReplaced事件
if (typeof Swup !== 'undefined') {
Swup.on('contentReplaced', function() {
Expand Down
4 changes: 3 additions & 1 deletion src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,10 @@ const bannerOffset = bannerOffsetByPosition[siteConfig.banner.position || 'cente
</script>

<slot name="head"></slot>

<link href="https://artalk.loliko.cn/dist/Artalk.css" rel="stylesheet">
<script src="https://artalk.loliko.cn/dist/Artalk.js" defer></script>

<script src="https://artalk.loliko.cn/dist/Artalk.js" ></script>

<link rel="stylesheet" href="https://cdn.staticfile.net/KaTeX/0.16.9/katex.min.css" integrity="sha384-n8MVd4RsNIU0tAv4ct0nTaAbDJwPJzDEaqSD1odI+WdtXRGWt2kTvGFasHpSy3SV" crossorigin="anonymous">

Expand Down

0 comments on commit e575a5e

Please sign in to comment.