aboutsummaryrefslogtreecommitdiffstats
path: root/AGENTS.md
diff options
context:
space:
mode:
Diffstat (limited to 'AGENTS.md')
-rw-r--r--AGENTS.md10
1 files changed, 7 insertions, 3 deletions
diff --git a/AGENTS.md b/AGENTS.md
index 5e94b3d..3959498 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -295,9 +295,13 @@ internal/web/ server.go (host router, middleware, render helpers)
and `blog/tag.html`); the two modules are `tags` (by use, `count`) and
`tagcloud` (alphabetical, `cloudSizes` → `tc-1…tc-5`).
- **Search** (`web/search.go`, `handleBlogSearch`, `GET /search?q=&p=`,
- `blog/search.html`): the `search` module is a plain GET form (header bar or
- side box, `searchform` in `layouts/blog.html`; the results page shows one
- too). `searchPattern` turns the query into the regex both Postgres and Go
+ `blog/search.html`): the `search` module is a plain GET form of one input
+ (`searchform` in `layouts/blog.html`; Enter submits, the placeholder is the
+ label, so "Search" is not repeated all over the page). In the header it is
+ rendered inside the menu module's row, floated right (`Layout.HeaderMenu/
+ HeaderSearch`), and gets its own thin bar only when the header has no menu;
+ in a column it is a box with an optional heading. The results page shows a
+ box of its own only when no module does (`Layout.HasSearch`). `searchPattern` turns the query into the regex both Postgres and Go
run: words `regexp.QuoteMeta`'d and joined with `.*`, so the reader's words
are literal, case does not matter (`~*` / `(?is)`) and spaces mean
"anything in between", in order. `SearchPublishedPosts` matches it against