Added support for hidden title and feature image on pages (#943)

* Added support for hidden title and feature image on pages

Refs https://github.com/TryGhost/Product/issues/3568

* Switched from match to if helper for show_title_and_feature_image

Refs https://github.com/TryGhost/Product/issues/3568
This commit is contained in:
Sanne de Vries 2023-07-10 12:19:00 +02:00 committed by GitHub
parent 4ae190c1a6
commit d3483498d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 21 deletions

View File

@ -10,6 +10,7 @@ into the {body} tag of the default.hbs template --}}
<main id="site-main" class="site-main">
<article class="article {{post_class}}">
{{#if show_title_and_feature_image}}
<header class="article-header gh-canvas">
<h1 class="article-title">{{title}}</h1>
@ -34,6 +35,7 @@ into the {body} tag of the default.hbs template --}}
{{/if}}
</header>
{{/if}}
<section class="gh-content gh-canvas">
{{content}}