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:
2026-07-03 08:59:24 +02:00
co-authored by Claude Fable 5
parent aa81ab9a11
commit 32716f8ff1
8 changed files with 203 additions and 0 deletions
@@ -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