aboutsummaryrefslogtreecommitdiffstats
path: root/AGENTS.md
diff options
context:
space:
mode:
Diffstat (limited to 'AGENTS.md')
-rw-r--r--AGENTS.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/AGENTS.md b/AGENTS.md
index 97798dc..09d9b7d 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -218,6 +218,13 @@ internal/web/ server.go (host router, middleware, render helpers)
Adding a language: an entry in `i18n.languages`, a catalog file, a month
table in `monthTables` (nominative, in-date and short forms), and the test
gets a copy per language if its rules differ.
+- **Post date** is `posts.created_at` — there is no separate "published
+ at": the blogger sets it on the post form (`posted_at`, a
+ `datetime-local` input that degrades to a text box; `parsePostDate`
+ 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.
- **Slugs**: auto-generated from the title; on collision generated slugs
get `-2`, `-3`…, user-typed slugs return a 409 with a message.
- **Errors**: `store.ErrNotFound` / `store.ErrConflict` are the sentinels