Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: discourse/discourse-search-banner
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: discourse/discourse-search-banner
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: custom-link
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Jul 7, 2021

  1. Copy the full SHA
    1715f2f View commit details

Commits on Jul 9, 2021

  1. add class to span

    jordanvidrine committed Jul 9, 2021
    Copy the full SHA
    243625d View commit details
Showing with 21 additions and 0 deletions.
  1. +1 −0 javascripts/discourse/templates/components/search-banner.hbs
  2. +20 −0 settings.yml
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@
<div class="wrap custom-search-banner-wrap">
<h1>{{theme-i18n "search_banner.headline"}}</h1>
<p>{{theme-i18n "search_banner.subhead"}}</p>
<span class="custom-link"> Check out our <a href="{{theme-setting 'banner_link_one'}}">{{theme-setting 'banner_title_one'}}</a> {{d-icon 'external-link-alt'}}</span>
{{mount-widget widget="search-widget"}}
</div>
</div>
20 changes: 20 additions & 0 deletions settings.yml
Original file line number Diff line number Diff line change
@@ -28,3 +28,23 @@ show_for:
- everyone
- logged_in
- logged_out

banner_title_one:
default: ""
type: string
description: "Title of the first link in the search menu"

banner_link_one:
default: ""
type: string
description: "Href of the first link in the search menu"

banner_title_two:
default: ""
type: string
description: "Title of the first link in the search menu"

banner_link_two:
default: ""
type: string
description: "Href of the first link in the search menu"