Make search bar and subscribe CTA customisable

We don't want to hardcode the text!
This commit is contained in:
Badri Sunderarajan 2023-02-13 22:48:12 +05:30
parent 28cf0c81fc
commit ccf346f3e8
2 changed files with 24 additions and 3 deletions

View file

@ -25,12 +25,25 @@ into the {body} of the default.hbs template --}}
</h1>
<p>{{@site.description}}</p>
<a class="header-cta-button" href="#/search">
<div>I want to think about...</div>
<span>Search</span>
<div>
{{#if @custom.search_bar_text}}
{{@custom.search_bar_text}}
{{else}}
I want to think about...
{{/if}}
</div>
<span>Search</span>
</a>
{{#unless @member}}
<a class="header-cta-secondary" href="#/portal">
<p>{{> "icons/email"}} Think about something new every week</p>
<p>
{{> "icons/email"}}
{{#if @custom.subscribe_cta_text}}
{{@custom.subscribe_cta_text}}
{{else}}
Think about something new every week
{{/if}}
</p>
</a>
{{/unless}}
</div>

View file

@ -99,6 +99,14 @@
"enter_tag_slugs": {
"type": "text",
"group": "homepage"
},
"search_bar_text": {
"type": "text",
"group": "homepage"
},
"subscribe_cta_text": {
"type": "text",
"group": "homepage"
}
}
},