Skip to content

feat(say): support active-theme page templates - #40

Merged
lizheming merged 1 commit into
mainfrom
feat/say-theme-templates
Nov 21, 2026
Merged

lizheming merged 1 commit into
mainfrom
feat/say-theme-templates

Conversation

@lizheming

Copy link
Copy Markdown
Contributor

Summary

  • Allow the active theme to override /says, /says/tag/:tag (including /says?tag=...) and /says/:id with plugins/say/list.eta, tag.eta and detail.eta through the Core site-route renderTheme(name, data) helper.
  • Pass an explicit public view model as firekylin.say: content, pagination, shared route URLs, previous/next links, and existing escaped item/composer/comment fragments. Do not pass raw settings, publishing credentials or login identity. Custom location rendering receives coordinates/text, not the configured map-service key; legacy fallback retains its map.
  • Fall back independently when an override is absent or the older Core has no renderer. Propagate existing-template errors and respect intentional empty output.
  • Retain public-only checks, request cache policy, native Waline pathname/type target, composer/admin behavior and the already-merged navigation from feat(say): add detail navigation and remove publisher allowlists #39. No publisher-platform settings changes, package release or deployment.
  • Document all three templates, the view-model contract, safe output, compatibility and a complete Eta example.

Core dependency

Companion Core draft: firekylin/firekylin#1000 . Theme overrides require that site-route renderer. This plugin remains usable with older Core versions through built-in fallback.

Validation

  • pnpm test: 511 tests, 335 passed, 176 optional/environment skips, 0 failures. Say package: 161 tests, 159 passed, 2 optional core-integration skips. Includes 10 new template/route/visibility/URL/fallback/error tests.
  • Syntax checks and git diff --check passed. No lockfile changes.
  • Independent local HTTP + SQLite integration against both working trees passed all three overrides, independent fallback, nested layout + Widget, list/tag pagination, previous/next, private-detail 404, invalid-template 500, guest login, real admin composer and native Waline target markup.
  • Compatibility control with unmodified Core ffe59ab and patched Say retained built-in HTML for all three routes even with override files present.

No production site, theme repository or real platform messages were modified.

@lizheming
lizheming marked this pull request as ready for review November 21, 2026 01:54
@lizheming
lizheming merged commit cb8f281 into main Nov 21, 2026
1 check passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T01:55:01.256287Z 96eb07d Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant