diff --git a/javascripts/discourse/components/search-banner.js b/javascripts/discourse/components/search-banner.js index bba2038..dacca41 100644 --- a/javascripts/discourse/components/search-banner.js +++ b/javascripts/discourse/components/search-banner.js @@ -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 ( diff --git a/javascripts/discourse/templates/components/search-banner.hbs b/javascripts/discourse/templates/components/search-banner.hbs index 70547a5..a3a4054 100644 --- a/javascripts/discourse/templates/components/search-banner.hbs +++ b/javascripts/discourse/templates/components/search-banner.hbs @@ -2,6 +2,7 @@

{{html-safe (theme-i18n "search_banner.headline")}}

+

{{html-safe (theme-i18n "search_banner.subhead")}}

{{mount-widget widget="search-widget"}}
diff --git a/settings.yml b/settings.yml index aa65b05..fa353fd 100644 --- a/settings.yml +++ b/settings.yml @@ -4,6 +4,7 @@ show_on: choices: - top_menu - homepage + - discovery - all description: top_menu refers to the top menu site setting