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:
parent
1b6ef70ca9
commit
818e0b74df
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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 {
|
||||
|
|
2
page.hbs
2
page.hbs
|
@ -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}}
|
||||
|
|
Loading…
Reference in New Issue