Currently all posts regenerate comments on every build, which contributes to build time. For a blog with 20+ years of posts, most comment activity is on recent entries.
Possible approach:
- Add an
archived: true flag to post front matter (manually or via a script for posts older than N days)
- Archived posts skip comment rendering during normal builds
- A separate scheduled job (cron via GitHub Actions) does a full rebuild periodically to pick up any straggler comments on old posts
- The comment form could also be hidden on archived posts to discourage submissions
This is a low-priority optimization — just capturing the idea for later.
Currently all posts regenerate comments on every build, which contributes to build time. For a blog with 20+ years of posts, most comment activity is on recent entries.
Possible approach:
archived: trueflag to post front matter (manually or via a script for posts older than N days)This is a low-priority optimization — just capturing the idea for later.