From 2a347ced1b4ea8c24440f646df35207c3a3597ac Mon Sep 17 00:00:00 2001 From: grm Date: Thu, 17 Sep 2026 21:42:02 +0300 Subject: Let a post hide its date A checkbox on the post form (posts.hide_date) overriding the theme's "show the date on posts" for that post alone: listings, the post page and search results leave the date out; the feed keeps its pubDate. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01Sd8UPWrvyYCLj97JexNw3A --- internal/db/migrations/blog/00011_post_hide_date.sql | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 internal/db/migrations/blog/00011_post_hide_date.sql (limited to 'internal/db/migrations/blog/00011_post_hide_date.sql') diff --git a/internal/db/migrations/blog/00011_post_hide_date.sql b/internal/db/migrations/blog/00011_post_hide_date.sql new file mode 100644 index 0000000..5af11ed --- /dev/null +++ b/internal/db/migrations/blog/00011_post_hide_date.sql @@ -0,0 +1,7 @@ +-- +goose Up +-- A per-post override of the theme's "show the date" switch, for evergreen +-- posts on a blog that otherwise dates everything. +ALTER TABLE posts ADD COLUMN hide_date boolean NOT NULL DEFAULT false; + +-- +goose Down +ALTER TABLE posts DROP COLUMN hide_date; -- cgit v1.2.3