UX: add "discovery" option, plugin outlet (#30)
This commit is contained in:
parent
5f6eddaabc
commit
2937df0162
|
|
@ -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 (
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue