Make search bar and subscribe CTA customisable
We don't want to hardcode the text!
This commit is contained in:
parent
28cf0c81fc
commit
ccf346f3e8
2 changed files with 24 additions and 3 deletions
17
home.hbs
17
home.hbs
|
@ -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>
|
||||
<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>
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue