feat: wiki badge and /wiki links in global search results
Override Harmony's search partials so results tagged by the wiki plugin (isWikiArticle + wikiPath) show a gold Wiki badge and link to /wiki/... instead of /post/..., in the quick-search dropdown and both /search views. Forum results render unchanged; posts_list_item is shared with account and group pages, where the flags are never set and the conditional no-ops. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -59,6 +59,13 @@ NodeBB version:
|
||||
Planning resolves which, based on the actual stock partials in the pinned
|
||||
NodeBB/theme base.
|
||||
|
||||
**Resolved (2026-07-03): template override.** Harmony's row markup is small and
|
||||
self-contained, so the theme overrides `partials/posts_list_item.tpl` (`/search`
|
||||
posts view — shared with account/groups pages, where the wiki flags are never
|
||||
set and the conditional no-ops), `partials/search-results.tpl` (`/search` topics
|
||||
view), and `partials/quick-search-results.tpl` (dropdown). No client-side
|
||||
decoration needed.
|
||||
|
||||
## Styling
|
||||
|
||||
Add badge styles in the theme SCSS (`scss/`, wired via `theme.scss`), matching
|
||||
|
||||
Reference in New Issue
Block a user