Hide subscription button and form if Members feature is disabled (#375)

This commit is contained in:
Rajiv Shah 2021-10-09 07:50:44 -04:00 committed by GitHub
parent 01ae42c45d
commit da7c113ef9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 1 deletions

View File

@ -31,7 +31,9 @@ into the {body} of the default.hbs template --}}
{{#if @site.description}}
<p class="m-hero-description bigger">{{@site.description}}</p>
{{/if}}
{{#if @labs.members}}
<a href="{{@site.url}}/newsletter" class="m-button filled js-newsletter">{{t "Subscribe"}}</a>
{{/if}}
</div>
</section>
<div class="l-content">

View File

@ -84,6 +84,7 @@ into the {body} of the default.hbs template --}}
</div>
</div>
{{!-- Email subscribe form at the bottom of the page --}}
{{#if @labs.members}}
<section class="m-subscribe-section js-newsletter">
<div class="l-wrapper in-post">
<div class="m-subscribe-section__content">
@ -99,6 +100,7 @@ into the {body} of the default.hbs template --}}
</div>
</div>
</section>
{{/if}}
<section class="m-author">
<div class="m-author__content">
<div class="m-author__picture">

View File

@ -2,7 +2,7 @@ version: '3'
services:
ghost:
image: ghost:4.3.3
image: ghost:4.4.0
container_name: ghost
volumes:
- ./..:/var/lib/ghost/content/themes/liebling:Z