Skip to content

Commit 90c2bfb

Browse files
Added custom text settings for signup heading and subheading
1 parent ed31476 commit 90c2bfb

File tree

3 files changed

+20
-8
lines changed

3 files changed

+20
-8
lines changed

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,14 @@
122122
],
123123
"default": "Modern sans-serif"
124124
},
125+
"signup_heading": {
126+
"type": "text",
127+
"description": "Shows site title when empty"
128+
},
129+
"signup_subheading": {
130+
"type": "text",
131+
"description": "Shows site description when empty"
132+
},
125133
"header_style": {
126134
"type": "select",
127135
"options": [

partials/components/cta.hbs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@
66
<section class="gh-cta gh-outer">
77
<div class="gh-cta-inner gh-inner">
88
<div class="gh-cta-content">
9-
<h2 class="gh-cta-title is-title">{{@site.title}}</h2>
10-
{{#if @site.description}}
11-
<p class="gh-cta-description is-body">{{@site.description}}</p>
12-
{{/if}}
9+
<h2 class="gh-cta-title is-title">
10+
{{#if @custom.signup_heading}}{{@custom.signup_heading}}{{else}}{{@site.title}}{{/if}}
11+
</h2>
12+
<p class="gh-cta-description is-body">
13+
{{#if @custom.signup_subheading}}{{@custom.signup_subheading}}{{else}}{{@site.description}}{{/if}}
14+
</p>
1315
</div>
1416
{{> "email-subscription"}}
1517
</div>

partials/components/footer.hbs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@
2020
{{#if @site.members_enabled}}
2121
{{#unless @member}}
2222
<section class="gh-footer-signup">
23-
<h2 class="gh-footer-signup-header is-title">{{@site.title}}</h2>
24-
{{#if @site.description}}
25-
<p class="gh-footer-signup-subhead is-body">{{@site.description}}</p>
26-
{{/if}}
23+
<h2 class="gh-footer-signup-header is-title">
24+
{{#if @custom.signup_heading}}{{@custom.signup_heading}}{{else}}{{@site.title}}{{/if}}
25+
</h2>
26+
<p class="gh-footer-signup-subhead is-body">
27+
{{#if @custom.signup_subheading}}{{@custom.signup_subheading}}{{else}}{{@site.description}}{{/if}}
28+
</p>
2729
{{> "email-subscription"}}
2830
</section>
2931
{{/unless}}

0 commit comments

Comments
 (0)