UX: add "discovery" option, plugin outlet (#30)

This commit is contained in:
Kris 2023-04-18 15:20:25 -04:00 committed by GitHub
parent 5f6eddaabc
commit 2937df0162
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,8 @@ export default Component.extend({
return this.siteSettings.top_menu
.split("|")
.any((m) => `discovery.${m}` === currentRouteName);
} else if (showOn === "discovery") {
return currentRouteName.startsWith("discovery.");
} else {
// "all"
return (

View File

@ -2,6 +2,7 @@
<div class="custom-search-banner">
<div class="wrap custom-search-banner-wrap">
<h1>{{html-safe (theme-i18n "search_banner.headline")}}</h1>
<PluginOutlet @name="search-banner-below-headline" />
<p>{{html-safe (theme-i18n "search_banner.subhead")}}</p>
{{mount-widget widget="search-widget"}}
</div>

View File

@ -4,6 +4,7 @@ show_on:
choices:
- top_menu
- homepage
- discovery
- all
description: top_menu refers to the <a href="/admin/site_settings/category/all_results?filter=top_menu">top menu site setting</a>