Added support for hiding page title and feature image (#262)

* Added support for hiding page title and feature image

Refs https://github.com/TryGhost/Product/issues/3568
This commit is contained in:
Sanne de Vries
2023-08-01 01:52:02 +02:00
committed by GitHub
parent 6e6c8b4259
commit 4252cd768a
4 changed files with 13 additions and 9 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -64,6 +64,7 @@
{{{body}}} {{{body}}}
{{^is "page"}}
{{#if @site.members_enabled}} {{#if @site.members_enabled}}
{{#unless @member}} {{#unless @member}}
<div class="gh-subscribe"> <div class="gh-subscribe">
@@ -83,6 +84,7 @@
</div> </div>
{{/unless}} {{/unless}}
{{/if}} {{/if}}
{{/is}}
<footer class="gh-foot{{#unless @site.secondary_navigation}} no-menu{{/unless}} gh-outer"> <footer class="gh-foot{{#unless @site.secondary_navigation}} no-menu{{/unless}} gh-outer">
<div class="gh-foot-inner gh-inner"> <div class="gh-foot-inner gh-inner">

View File

@@ -5,15 +5,17 @@
<main id="gh-main" class="gh-main"> <main id="gh-main" class="gh-main">
<article class="gh-article {{post_class}}"> <article class="gh-article {{post_class}}">
<header class="gh-article-header gh-canvas"> {{#match @page.show_title_and_feature_image}}
<h1 class="gh-article-title">{{title}}</h1> <header class="gh-article-header gh-canvas">
<h1 class="gh-article-title">{{title}}</h1>
{{#if custom_excerpt}} {{#if custom_excerpt}}
<p class="gh-article-excerpt">{{custom_excerpt}}</p> <p class="gh-article-excerpt">{{custom_excerpt}}</p>
{{/if}} {{/if}}
{{> "feature-image"}} {{> "feature-image"}}
</header> </header>
{{/match}}
<div class="gh-content gh-canvas"> <div class="gh-content gh-canvas">
{{content}} {{content}}