You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _posts/2024-05-24-giscus-comments.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ I added a commenting feature for the blog using [giscus][giscus]. Basically, it
10
10
11
11
# Try it
12
12
13
-
You can test it out yourself on this blog post in the comments below by signing into your Github account and commenting, or you can comment on the repository's Github Discussions directly and it will show up on the comments section on the website similarly.
13
+
You can test it out yourself on this blog post in the comments below by signing into your Github account and commenting, or you can comment on the [Github Discussions post](https://github.com/de-soot/de-soot.github.io/discussions/22) directly and it will show up on the comments section on the website similarly.
14
14
15
15
# Add it to your own Github Pages website
16
16
@@ -24,7 +24,7 @@ You can test it out yourself on this blog post in the comments below by signing
24
24
25
25
Giscus finds and links the comments to the Github Discussions by searching through and matching URLs, path names, titles, and other such metadata. If you try to change a page's title without editing the associated Github Discussion accordingly, it may lead to giscus not being able to find and link it to the Github Discussion (this is especially noticible if you set the `<script>`'s `data-strict` attribute value to `"1"`), and hence Giscus will create a new Github Discussion.
26
26
27
-
Giscus also only creates Discussions when someone comments, so it is easier to go back and edit to fix some things on your post if you do not have any comments yet rather than when your post already has comments in its own Discussion and you have to manually copy across those changes.
27
+
Giscus also does not update or sync the posts made on Github Discussions with the blogs on your website, so you may have to manually copy across the changes and edits you make to your blog posts. Luckily, giscus only creates a post on Discussions when there is interaction (reactions or comments) with giscus on your blog post, so it should not be an issue for new blog posts that no one has commented or reacted to yet.
Copy file name to clipboardExpand all lines: _site/feed.xml
+3-3
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
<?xml version="1.0" encoding="utf-8"?><feedxmlns="http://www.w3.org/2005/Atom" ><generatoruri="https://jekyllrb.com/"version="3.10.0">Jekyll</generator><linkhref="http://localhost:4000/feed.xml"rel="self"type="application/atom+xml" /><linkhref="http://localhost:4000/"rel="alternate"type="text/html" /><updated>2025-02-10T12:42:36+08:00</updated><id>http://localhost:4000/feed.xml</id><titletype="html">de_soot</title><subtitle>Hosted on Github Pages</subtitle><entry><titletype="html">Guide to APA with groff ms and refer</title><linkhref="http://localhost:4000/groff-apa"rel="alternate"type="text/html"title="Guide to APA with groff ms and refer" /><published>2025-02-07T00:00:00+08:00</published><updated>2025-02-07T00:00:00+08:00</updated><id>http://localhost:4000/groff-apa</id><contenttype="html"xml:base="http://localhost:4000/groff-apa"><![CDATA[<p>This guide explains why and how I used groff with the ms and refer macros to write my college essay in Neovim.</p>
1
+
<?xml version="1.0" encoding="utf-8"?><feedxmlns="http://www.w3.org/2005/Atom" ><generatoruri="https://jekyllrb.com/"version="3.10.0">Jekyll</generator><linkhref="http://localhost:4000/feed.xml"rel="self"type="application/atom+xml" /><linkhref="http://localhost:4000/"rel="alternate"type="text/html" /><updated>2025-02-10T12:57:35+08:00</updated><id>http://localhost:4000/feed.xml</id><titletype="html">de_soot</title><subtitle>Hosted on Github Pages</subtitle><entry><titletype="html">Guide to APA with groff ms and refer</title><linkhref="http://localhost:4000/groff-apa"rel="alternate"type="text/html"title="Guide to APA with groff ms and refer" /><published>2025-02-07T00:00:00+08:00</published><updated>2025-02-07T00:00:00+08:00</updated><id>http://localhost:4000/groff-apa</id><contenttype="html"xml:base="http://localhost:4000/groff-apa"><![CDATA[<p>This guide explains why and how I used groff with the ms and refer macros to write my college essay in Neovim.</p>
2
2
3
3
<h1 id="table-of-contents-">Table of Contents <a name="tableofcontents"></a></h1>
4
4
@@ -632,7 +632,7 @@ join-authors " & " ", " " & " # Change default "and" to ampersand (&
632
632
633
633
<h1 id="try-it">Try it</h1>
634
634
635
-
<p>You can test it out yourself on this blog post in the comments below by signing into your Github account and commenting, or you can comment on the repository’s Github Discussions directly and it will show up on the comments section on the website similarly.</p>
635
+
<p>You can test it out yourself on this blog post in the comments below by signing into your Github account and commenting, or you can comment on the <a href="https://github.com/de-soot/de-soot.github.io/discussions/22">Github Discussions post</a> directly and it will show up on the comments section on the website similarly.</p>
636
636
637
637
<h1 id="add-it-to-your-own-github-pages-website">Add it to your own Github Pages website</h1>
638
638
@@ -646,7 +646,7 @@ join-authors " & " ", " " & " # Change default "and" to ampersand (&
646
646
647
647
<p>Giscus finds and links the comments to the Github Discussions by searching through and matching URLs, path names, titles, and other such metadata. If you try to change a page’s title without editing the associated Github Discussion accordingly, it may lead to giscus not being able to find and link it to the Github Discussion (this is especially noticible if you set the <code class="language-plaintext highlighter-rouge"><script></code>’s <code class="language-plaintext highlighter-rouge">data-strict</code> attribute value to <code class="language-plaintext highlighter-rouge">"1"</code>), and hence Giscus will create a new Github Discussion.</p>
648
648
649
-
<p>Giscus also only creates Discussions when someone comments, so it is easier to go back and edit to fix some things on your post if you do not have any comments yet rather than when your post already has comments in its own Discussion and you have to manually copy across those changes.</p>
649
+
<p>Giscus also does not update or sync the posts made on Github Discussions with the blogs on your website, so you may have to manually copy across the changes and edits you make to your blog posts. Luckily, giscus only creates a post on Discussions when there is interaction (reactions or comments) with giscus on your blog post, so it should not be an issue for new blog posts that no one has commented or reacted to yet.</p>
</script>]]></content><author><name></name></author><categoryterm="comments," /><categoryterm="giscus," /><categoryterm="github" /><categoryterm="pages," /><categoryterm="discussions," /><categoryterm="static" /><categoryterm="websites" /><summarytype="html"><![CDATA[I added a commenting feature for the blog using giscus. Basically, it uses Github Discussions to store comments instead of storing it in its own database on the web server. Since this website is hosted on Github Pages and Pages only supports static websites, it cannot host its own databases to store things such as comments. This guide explains how to add giscus comments to statically-hosted websites, and some quirks and caveats with using Github Discussions as a database for your comments.]]></summary></entry></feed>
<p>You can test it out yourself on this blog post in the comments below by signing into your Github account and commenting, or you can comment on the repository’s Github Discussions directly and it will show up on the comments section on the website similarly.</p>
54
+
<p>You can test it out yourself on this blog post in the comments below by signing into your Github account and commenting, or you can comment on the <ahref="https://github.com/de-soot/de-soot.github.io/discussions/22">Github Discussions post</a> directly and it will show up on the comments section on the website similarly.</p>
55
55
56
56
<h1id="add-it-to-your-own-github-pages-website">Add it to your own Github Pages website</h1>
57
57
@@ -65,7 +65,7 @@ <h1 id="note">Note</h1>
65
65
66
66
<p>Giscus finds and links the comments to the Github Discussions by searching through and matching URLs, path names, titles, and other such metadata. If you try to change a page’s title without editing the associated Github Discussion accordingly, it may lead to giscus not being able to find and link it to the Github Discussion (this is especially noticible if you set the <codeclass="language-plaintext highlighter-rouge"><script></code>’s <codeclass="language-plaintext highlighter-rouge">data-strict</code> attribute value to <codeclass="language-plaintext highlighter-rouge">"1"</code>), and hence Giscus will create a new Github Discussion.</p>
67
67
68
-
<p>Giscus also only creates Discussions when someone comments, so it is easier to go back and edit to fix some things on your post if you do not have any comments yet rather than when your post already has comments in its own Discussion and you have to manually copy across those changes.</p>
68
+
<p>Giscus also does not update or sync the posts made on Github Discussions with the blogs on your website, so you may have to manually copy across the changes and edits you make to your blog posts. Luckily, giscus only creates a post on Discussions when there is interaction (reactions or comments) with giscus on your blog post, so it should not be an issue for new blog posts that no one has commented or reacted to yet.</p>
0 commit comments