adding giscus comments to this blog¤
i've wanted comments for a bit. i didn't realize what a can of worms this decision was. during the day i implemented:
- disqus after finding that
mkdocs-material
deprecated it. https://github.com/squidfunk/mkdocs-material/pull/3329 - then i tried utterances, but i guess that is old hat.
- now we have giscus because it is successor of utterances. https://yihui.org/en/2022/12/disqus-to-giscus/
the diff¤
the new comment system was added by overriding the commments.html
partial.
if I := "__file__" not in locals():
!cd ../.. && git log --name-only --pretty=oneline 8f808b9208e8226b68a243882b5738258d1a6c72..c184b6d10b3405b2b0e227b21dc37c5285800214
the comments.html
file¤
the snippet in generated by the giscus app. everything needs to be filled out!
if I:
import pathlib, IPython
display(IPython.display.Code(pathlib.Path("../../overrides/partials/comments.html").read_text(), language="html"))