Skip to content

Commit

Permalink
add giscus, remove ga
Browse files Browse the repository at this point in the history
  • Loading branch information
AngeloChecked committed Oct 26, 2024
1 parent d197763 commit 4ccccfd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions blog/components/Article.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,24 @@ export function Article(props: { content: string; title: string }) {
<article>
<h1>${props.title}</h1
${props.content}
<div class="giscus">
</div>
</article>
<script src="https://giscus.app/client.js"
data-repo="AngeloChecked/AngeloChecked-blog"
data-repo-id="R_kgDOM5jfhw"
data-category="General"
data-category-id="DIC_kwDOM5jfh84CjXw0"
data-mapping="title"
data-strict="0"
data-reactions-enabled="1"
data-emit-metadata="0"
data-input-position="bottom"
data-theme="dark_tritanopia"
data-lang="en"
data-loading="lazy"
crossorigin="anonymous"
async>
</script>
`;
}
2 changes: 1 addition & 1 deletion blog/components/Base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const Base = (props: BaseProps) => html`
</head>
<body>
${googleTagManagerScript()} ${props.menu}
${props.menu}
<main class="${mainClass.className}">${props.content}</main>
</body>
${props.footer}
Expand Down

0 comments on commit 4ccccfd

Please sign in to comment.