diff options
Diffstat (limited to 'AGENTS.md')
| -rw-r--r-- | AGENTS.md | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -398,7 +398,10 @@ internal/web/ server.go (host router, middleware, render helpers) accepts `YYYY-MM-DD[THH:MM]`), for new and existing posts alike, and it drives ordering, the archive, the feed and the displayed dates. Blank keeps the current value; a new post starts at now. Times are in the server's - zone, which is also the one dates are rendered in. + zone, which is also the one dates are rendered in. `posts.hide_date` + (`Post.HideDate`, the form's "Hide the date on this post") is a per-post + override of the theme's `ShowDates`: the listing, post page and search + templates check `and ShowDates (not .HideDate)`; the feed keeps its `pubDate`. - **Tags** (`tags` + `post_tags` tables, `store/tags.go`, `web/tags.go`): a tag is `name` + unique `slug` (`slug.Make(name)`), so the slug is both the URL (`/tag/<slug>`, `handleBlogTag`, published posts of every page, @@ -466,7 +469,7 @@ superadmin password to `admin`. Production refuses both. `-- +goose Up/Down` sections; they run automatically at startup. Never edit an applied migration. Blog chain so far: `00001_init`, `00002_language`, `00003_files`, `00004_tags`, `00005_search`, `00006_format`, `00007_post_image`, - `00008_page_outro`, `00009_gizmo_style`, `00010_font_kind`; control: `00001_init`, `00002_upload_limit`. Both chains were re-baselined at 00001 after + `00008_page_outro`, `00009_gizmo_style`, `00010_font_kind`, `00011_post_hide_date`; control: `00001_init`, `00002_upload_limit`. Both chains were re-baselined at 00001 after the move to per-blog databases; deployments from before it have `goose_db_version` rows 2–7 in the control DB that must be deleted once (README "Upgrading from a single database") or the next control migration |
