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
+17
View File
@@ -0,0 +1,17 @@
/* Wiki badge on global search results (quick-search dropdown + /search page).
Marks results tagged by nodebb-plugin-westgate-wiki (isWikiArticle/wikiPath). */
.westgate-wiki-badge {
font-family: var(--wg-font-ui);
font-size: 0.62em;
font-weight: 600;
letter-spacing: 0.09em;
text-transform: uppercase;
color: var(--wg-gold);
background: rgba(194, 163, 90, 0.1);
border: 1px solid var(--wg-ledger-border);
vertical-align: middle;
}
.quick-search-results .westgate-wiki-badge {
font-size: 0.7rem;
}