mirror of
https://github.com/aljazceru/Journal-ghost.git
synced 2025-12-18 21:54: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}}}
|
||||
|
||||
{{^is "page"}}
|
||||
{{#if @site.members_enabled}}
|
||||
{{#unless @member}}
|
||||
<div class="gh-subscribe">
|
||||
@@ -83,6 +84,7 @@
|
||||
</div>
|
||||
{{/unless}}
|
||||
{{/if}}
|
||||
{{/is}}
|
||||
|
||||
<footer class="gh-foot{{#unless @site.secondary_navigation}} no-menu{{/unless}} gh-outer">
|
||||
<div class="gh-foot-inner gh-inner">
|
||||
|
||||
16
page.hbs
16
page.hbs
@@ -5,15 +5,17 @@
|
||||
<main id="gh-main" class="gh-main">
|
||||
<article class="gh-article {{post_class}}">
|
||||
|
||||
<header class="gh-article-header gh-canvas">
|
||||
<h1 class="gh-article-title">{{title}}</h1>
|
||||
{{#match @page.show_title_and_feature_image}}
|
||||
<header class="gh-article-header gh-canvas">
|
||||
<h1 class="gh-article-title">{{title}}</h1>
|
||||
|
||||
{{#if custom_excerpt}}
|
||||
<p class="gh-article-excerpt">{{custom_excerpt}}</p>
|
||||
{{/if}}
|
||||
{{#if custom_excerpt}}
|
||||
<p class="gh-article-excerpt">{{custom_excerpt}}</p>
|
||||
{{/if}}
|
||||
|
||||
{{> "feature-image"}}
|
||||
</header>
|
||||
{{> "feature-image"}}
|
||||
</header>
|
||||
{{/match}}
|
||||
|
||||
<div class="gh-content gh-canvas">
|
||||
{{content}}
|
||||
|
||||
Reference in New Issue
Block a user