Added custom text settings for signup heading and subheading

This commit is contained in:
Sodbileg Gansukh 2023-08-28 11:47:31 +08:00
parent ed3147630c
commit 90c2bfba46
3 changed files with 20 additions and 8 deletions

View File

@ -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": [

View File

@ -6,10 +6,12 @@
<section class="gh-cta gh-outer">
<div class="gh-cta-inner gh-inner">
<div class="gh-cta-content">
<h2 class="gh-cta-title is-title">{{@site.title}}</h2>
{{#if @site.description}}
<p class="gh-cta-description is-body">{{@site.description}}</p>
{{/if}}
<h2 class="gh-cta-title is-title">
{{#if @custom.signup_heading}}{{@custom.signup_heading}}{{else}}{{@site.title}}{{/if}}
</h2>
<p class="gh-cta-description is-body">
{{#if @custom.signup_subheading}}{{@custom.signup_subheading}}{{else}}{{@site.description}}{{/if}}
</p>
</div>
{{> "email-subscription"}}
</div>

View File

@ -20,10 +20,12 @@
{{#if @site.members_enabled}}
{{#unless @member}}
<section class="gh-footer-signup">
<h2 class="gh-footer-signup-header is-title">{{@site.title}}</h2>
{{#if @site.description}}
<p class="gh-footer-signup-subhead is-body">{{@site.description}}</p>
{{/if}}
<h2 class="gh-footer-signup-header is-title">
{{#if @custom.signup_heading}}{{@custom.signup_heading}}{{else}}{{@site.title}}{{/if}}
</h2>
<p class="gh-footer-signup-subhead is-body">
{{#if @custom.signup_subheading}}{{@custom.signup_subheading}}{{else}}{{@site.description}}{{/if}}
</p>
{{> "email-subscription"}}
</section>
{{/unless}}