mirror of
https://github.com/aljazceru/Journal-ghost.git
synced 2025-12-18 13:44:21 +01:00
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:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -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">
|
||||||
|
|||||||
16
page.hbs
16
page.hbs
@@ -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}}
|
||||||
|
|||||||
Reference in New Issue
Block a user