From 90c2bfba4618e800f894d865a24514d579f95e33 Mon Sep 17 00:00:00 2001 From: Sodbileg Gansukh Date: Mon, 28 Aug 2023 11:47:31 +0800 Subject: [PATCH] Added custom text settings for signup heading and subheading --- package.json | 8 ++++++++ partials/components/cta.hbs | 10 ++++++---- partials/components/footer.hbs | 10 ++++++---- 3 files changed, 20 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 7855494..cd1dffa 100644 --- a/package.json +++ b/package.json @@ -122,6 +122,14 @@ ], "default": "Modern sans-serif" }, + "signup_heading": { + "type": "text", + "description": "Shows site title when empty" + }, + "signup_subheading": { + "type": "text", + "description": "Shows site description when empty" + }, "header_style": { "type": "select", "options": [ diff --git a/partials/components/cta.hbs b/partials/components/cta.hbs index f77c1f7..f7d7d34 100644 --- a/partials/components/cta.hbs +++ b/partials/components/cta.hbs @@ -6,10 +6,12 @@
-

{{@site.title}}

- {{#if @site.description}} -

{{@site.description}}

- {{/if}} +

+ {{#if @custom.signup_heading}}{{@custom.signup_heading}}{{else}}{{@site.title}}{{/if}} +

+

+ {{#if @custom.signup_subheading}}{{@custom.signup_subheading}}{{else}}{{@site.description}}{{/if}} +

{{> "email-subscription"}}
diff --git a/partials/components/footer.hbs b/partials/components/footer.hbs index 847f362..7890951 100644 --- a/partials/components/footer.hbs +++ b/partials/components/footer.hbs @@ -20,10 +20,12 @@ {{#if @site.members_enabled}} {{#unless @member}} {{/unless}}