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;
|
--head-nav-gap: 32px;
|
||||||
--container-width: 1440px;
|
--container-width: 1440px;
|
||||||
--content-font-size: clamp(1.7rem, 0.38vw + 1.4rem, 2rem);
|
--content-font-size: clamp(1.7rem, 0.38vw + 1.4rem, 2rem);
|
||||||
|
--header-spacing: clamp(4.8rem, 4rem + 2.5vw, 8rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
:root.has-light-text {
|
:root.has-light-text {
|
||||||
|
|
16
page.hbs
16
page.hbs
|
@ -5,13 +5,15 @@
|
||||||
<main class="gh-main gh-outer">
|
<main class="gh-main gh-outer">
|
||||||
<div class="gh-inner">
|
<div class="gh-inner">
|
||||||
<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">
|
||||||
{{#if custom_excerpt}}
|
<h1 class="gh-article-title">{{title}}</h1>
|
||||||
<p class="gh-article-excerpt">{{custom_excerpt}}</p>
|
{{#if custom_excerpt}}
|
||||||
{{/if}}
|
<p class="gh-article-excerpt">{{custom_excerpt}}</p>
|
||||||
{{> "feature-image"}}
|
{{/if}}
|
||||||
</header>
|
{{> "feature-image"}}
|
||||||
|
</header>
|
||||||
|
{{/match}}
|
||||||
|
|
||||||
<section class="gh-content gh-canvas">
|
<section class="gh-content gh-canvas">
|
||||||
{{content}}
|
{{content}}
|
||||||
|
|
Loading…
Reference in New Issue