From d3483498d46639a06cd4771194087992879ed57f Mon Sep 17 00:00:00 2001 From: Sanne de Vries <65487235+sanne-san@users.noreply.github.com> Date: Mon, 10 Jul 2023 12:19:00 +0200 Subject: [PATCH] Added support for hidden title and feature image on pages (#943) * Added support for hidden title and feature image on pages Refs https://github.com/TryGhost/Product/issues/3568 * Switched from match to if helper for show_title_and_feature_image Refs https://github.com/TryGhost/Product/issues/3568 --- page.hbs | 44 +++++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/page.hbs b/page.hbs index 1acc6b7..054eb83 100644 --- a/page.hbs +++ b/page.hbs @@ -10,30 +10,32 @@ into the {body} tag of the default.hbs template --}}
-
+ {{#if show_title_and_feature_image}} +
-

{{title}}

+

{{title}}

- {{#if feature_image}} -
- {{!-- This is a responsive image, it loads different sizes depending on device - https://medium.freecodecamp.org/a-guide-to-responsive-images-with-ready-to-use-templates-c400bd65c433 --}} - {{#if feature_image_alt}}{{feature_image_alt}}{{else}}{{title}}{{/if}} - {{#if feature_image_caption}} -
{{feature_image_caption}}
- {{/if}} -
- {{/if}} + {{#if feature_image}} +
+ {{!-- This is a responsive image, it loads different sizes depending on device + https://medium.freecodecamp.org/a-guide-to-responsive-images-with-ready-to-use-templates-c400bd65c433 --}} + {{#if feature_image_alt}}{{feature_image_alt}}{{else}}{{title}}{{/if}} + {{#if feature_image_caption}} +
{{feature_image_caption}}
+ {{/if}} +
+ {{/if}} -
+
+ {{/if}}
{{content}}