From 7ec246929569c908bab06c8abd41a50e6eaf7a19 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Fri, 17 Apr 2026 15:08:50 -0400 Subject: [PATCH] Disable giscus comments, update essay with closure Co-Authored-By: Claude Opus 4.6 (1M context) --- .../2026-04-10-dont_read_the_comments.md | 6 ++- tuftecms/templates/base.html | 8 ---- tuftecms/templates/post.html | 42 +------------------ 3 files changed, 5 insertions(+), 51 deletions(-) diff --git a/data/essays/2026-04-10-dont_read_the_comments.md b/data/essays/2026-04-10-dont_read_the_comments.md index 5978a23..9d48f9d 100644 --- a/data/essays/2026-04-10-dont_read_the_comments.md +++ b/data/essays/2026-04-10-dont_read_the_comments.md @@ -49,6 +49,8 @@ Aaron Swartz was right. Don't read the comments. I'm going to read the comments. ---- +## Update: The Silence Won -*If you want to test it out, there should be a comment section just below this. Say hello. Or don't. The silence was nice too.* +I turned comments off a week later. Turns out the quiet was doing more work than I realized. The experiment ran, the answer came back, and the answer was: the essay is the essay. It doesn't need a reply section. + +Aaron Swartz was right. diff --git a/tuftecms/templates/base.html b/tuftecms/templates/base.html index 71b3cc8..e703031 100644 --- a/tuftecms/templates/base.html +++ b/tuftecms/templates/base.html @@ -252,14 +252,6 @@ body.classList.add('light-mode'); localStorage.setItem('theme', 'light-mode'); } - // Sync giscus theme if present - var giscusFrame = document.querySelector('iframe.giscus-frame'); - if (giscusFrame) { - var theme = body.classList.contains('dark-mode') ? 'dark' : 'light'; - giscusFrame.contentWindow.postMessage( - { giscus: { setConfig: { theme: theme } } }, 'https://giscus.app' - ); - } }); })(); diff --git a/tuftecms/templates/post.html b/tuftecms/templates/post.html index 04a9688..721fea2 100644 --- a/tuftecms/templates/post.html +++ b/tuftecms/templates/post.html @@ -573,19 +573,7 @@ line-height: 1.2; } - .giscus-container { - margin-top: 4rem; - padding-top: 2rem; - } - - body.dark-mode .giscus-container { - border-top-color: #2a2a2a; - } - @media (max-width: 760px) { - .giscus-container { - width: 100% !important; - } article h1 { font-size: 2.5rem; @@ -776,35 +764,7 @@ document.addEventListener('DOMContentLoaded', function() { {{ content | safe }} - - {% if current_path and current_path.startswith('/essays/') %} -
- -
- {% endif %} + {% if parent_directory %}