aboutsummaryrefslogtreecommitdiffstats
path: root/internal/db/migrations/blog/00011_post_hide_date.sql
diff options
context:
space:
mode:
authorgrm <grm@eyesin.space>2026-09-17 21:42:02 +0300
committergrm <grm@eyesin.space>2026-09-17 21:42:02 +0300
commit2a347ced1b4ea8c24440f646df35207c3a3597ac (patch)
tree2bdfdbb32173172975e576b56bf0636af7462817 /internal/db/migrations/blog/00011_post_hide_date.sql
parentb233445a73168994087356d45b5dc7dd6a07aa8e (diff)
downloadblogspace-2a347ced1b4ea8c24440f646df35207c3a3597ac.tar.gz
blogspace-2a347ced1b4ea8c24440f646df35207c3a3597ac.tar.bz2
blogspace-2a347ced1b4ea8c24440f646df35207c3a3597ac.zip
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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Sd8UPWrvyYCLj97JexNw3A
Diffstat (limited to 'internal/db/migrations/blog/00011_post_hide_date.sql')
-rw-r--r--internal/db/migrations/blog/00011_post_hide_date.sql7
1 files changed, 7 insertions, 0 deletions
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;