Skip to content

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:

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"))