From ccf346f3e8ef22dcc60d5386efeafe64513f20bd Mon Sep 17 00:00:00 2001 From: Badri Sunderarajan Date: Mon, 13 Feb 2023 22:48:12 +0530 Subject: [PATCH] Make search bar and subscribe CTA customisable We don't want to hardcode the text! --- home.hbs | 19 ++++++++++++++++--- package.json | 8 ++++++++ 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/home.hbs b/home.hbs index 505ba37..8bff44c 100644 --- a/home.hbs +++ b/home.hbs @@ -25,12 +25,25 @@ into the {body} of the default.hbs template --}}

{{@site.description}}

-
I want to think about...
- Search +
+ {{#if @custom.search_bar_text}} + {{@custom.search_bar_text}} + {{else}} + I want to think about... + {{/if}} +
+ Search
{{#unless @member}} -

{{> "icons/email"}} Think about something new every week

+

+ {{> "icons/email"}} + {{#if @custom.subscribe_cta_text}} + {{@custom.subscribe_cta_text}} + {{else}} + Think about something new every week + {{/if}} +

{{/unless}} diff --git a/package.json b/package.json index 3868d3f..b860a6d 100644 --- a/package.json +++ b/package.json @@ -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" } } },