Hide subscription button and form if Members feature is disabled (#375)
This commit is contained in:
parent
01ae42c45d
commit
da7c113ef9
@ -31,7 +31,9 @@ into the {body} of the default.hbs template --}}
|
|||||||
{{#if @site.description}}
|
{{#if @site.description}}
|
||||||
<p class="m-hero-description bigger">{{@site.description}}</p>
|
<p class="m-hero-description bigger">{{@site.description}}</p>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
{{#if @labs.members}}
|
||||||
<a href="{{@site.url}}/newsletter" class="m-button filled js-newsletter">{{t "Subscribe"}}</a>
|
<a href="{{@site.url}}/newsletter" class="m-button filled js-newsletter">{{t "Subscribe"}}</a>
|
||||||
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<div class="l-content">
|
<div class="l-content">
|
||||||
|
2
post.hbs
2
post.hbs
@ -84,6 +84,7 @@ into the {body} of the default.hbs template --}}
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{!-- Email subscribe form at the bottom of the page --}}
|
{{!-- Email subscribe form at the bottom of the page --}}
|
||||||
|
{{#if @labs.members}}
|
||||||
<section class="m-subscribe-section js-newsletter">
|
<section class="m-subscribe-section js-newsletter">
|
||||||
<div class="l-wrapper in-post">
|
<div class="l-wrapper in-post">
|
||||||
<div class="m-subscribe-section__content">
|
<div class="m-subscribe-section__content">
|
||||||
@ -99,6 +100,7 @@ into the {body} of the default.hbs template --}}
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
{{/if}}
|
||||||
<section class="m-author">
|
<section class="m-author">
|
||||||
<div class="m-author__content">
|
<div class="m-author__content">
|
||||||
<div class="m-author__picture">
|
<div class="m-author__picture">
|
||||||
|
@ -2,7 +2,7 @@ version: '3'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
ghost:
|
ghost:
|
||||||
image: ghost:4.3.3
|
image: ghost:4.4.0
|
||||||
container_name: ghost
|
container_name: ghost
|
||||||
volumes:
|
volumes:
|
||||||
- ./..:/var/lib/ghost/content/themes/liebling:Z
|
- ./..:/var/lib/ghost/content/themes/liebling:Z
|
||||||
|
Loading…
Reference in New Issue
Block a user