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 1b6ef70ca9
commit 818e0b74df
4 changed files with 12 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

@ -14,6 +14,7 @@
--head-nav-gap: 32px;
--container-width: 1440px;
--content-font-size: clamp(1.7rem, 0.38vw + 1.4rem, 2rem);
--header-spacing: clamp(4.8rem, 4rem + 2.5vw, 8rem);
}
:root.has-light-text {

View File

@ -5,6 +5,7 @@
<main class="gh-main gh-outer">
<div class="gh-inner">
<article class="gh-article {{post_class}}">
{{#match @page.show_title_and_feature_image}}
<header class="gh-article-header gh-canvas">
<h1 class="gh-article-title">{{title}}</h1>
{{#if custom_excerpt}}
@ -12,6 +13,7 @@
{{/if}}
{{> "feature-image"}}
</header>
{{/match}}
<section class="gh-content gh-canvas">
{{content}}