Files
StarPunk/docs/design/v2.3.0/2026-10-31-public-page-restyle.md
T
PhilandClaude Opus 5.5 0716984958 docs: Bring all documentation up to date for v2.10.1
- architecture/: overview, technology stack, auth (OIDC + built-in
  IndieAuth), syndication (POSSE) rewritten; new database.md,
  deployment.md and indieweb-protocols.md; legacy stack marked historical
- decisions/: reconstructed ADR-060 and ADR-063; 31 status corrections
  (superseded auth ADRs, proposed -> accepted); INDEX rebuilt
- design/: reconstructed the v1.6.0 documents the webmention code cites;
  reports for 18 v2 releases without a design folder; INDEX rebuilt
- projectplan/: BACKLOG rewritten (shipped items removed, open issues from
  the reviews added); RELEASE.md for v2.0.0-v2.10.1; INDEX
- standards/: development setup (uv, tests, DEV_MODE), testing (CI test
  stage), git and release flow, versioning, coding standards, cookies
- README, CLAUDE.md, .env.example (every setting the code reads, with
  defaults) brought up to date
- 137 broken links repaired (old absolute paths, moved files); stale ADR
  references in code comments corrected (comments only)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 12:40:19 -07:00

40 lines
1.5 KiB
Markdown

# v2.3.0: Public page restyle
> Reconstructed on 2026-11-03 from the changelog and git history. Commit `cc09098`.
## Summary
A styling pass over the public pages, plus three display bugs: note
metadata styled as the page footer, previews cut through HTML at 300
characters, and bare URLs not linked.
## Changes
- `templates/base.html`: compact header with `SITE_NAME`, nav, search;
page titles from the note text and `SITE_NAME`.
- `templates/partials/note_preview.html` (new): shared by `index.html` and
`tag.html`; short notes in full, titled notes show a summary and
"Read more". One-line metadata: date · #tags · Also on ….
- `templates/note.html`: same metadata line; author h-card kept for
parsers but visually hidden.
- `static/css/style.css`: serif reading font, dark mode via
`prefers-color-scheme`, footer pinned to the bottom, metadata no longer
inherits `footer` styles.
- `starpunk/markdown_ext.py` (new): `BareUrlExtension` links bare
`http(s)://` URLs (trailing punctuation excluded) and un-nests a link
inside a link.
- `starpunk/models.py`: `BareUrlExtension()` added to
`MARKDOWN_EXTENSIONS` (`extra`, `codehilite`, `nl2br`).
- "Log in" moved from the header to the footer (reverted in v2.3.1).
## Tests
`tests/test_public_style.py` (4 tests: bare URLs linked, a URL used as
link text not nested, home page shows full notes and `SITE_NAME`, note
page metadata line); one assertion updated in
`tests/test_routes_public.py`.
## Notes
The header only knew about logged-in users on `/admin` pages until v2.3.2.