From c74be0e346dc4ce0c8c73afea88f41d1079cb4e2 Mon Sep 17 00:00:00 2001 From: Sodbileg Gansukh Date: Thu, 19 May 2022 21:46:26 +0800 Subject: [PATCH] Post image style setting --- package.json | 5 +++-- post.hbs | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 8641556..291720b 100644 --- a/package.json +++ b/package.json @@ -144,12 +144,13 @@ ], "default": "Light" }, - "post_image_width": { + "post_image_style": { "type": "select", "options": [ "Wide", "Full", - "Small" + "Small", + "Hidden" ], "default": "Wide", "group": "post" diff --git a/post.hbs b/post.hbs index 3d481e4..36d68a8 100644 --- a/post.hbs +++ b/post.hbs @@ -8,7 +8,7 @@ into the {body} tag of the default.hbs template --}} {{!-- Everything inside the #post block pulls data from the post --}}
-
+
@@ -52,6 +52,7 @@ into the {body} tag of the default.hbs template --}} + {{#match @custom.post_image_style "!=" "Hidden"}} {{#if feature_image}}
{{!-- This is a responsive image, it loads different sizes depending on device @@ -70,6 +71,7 @@ into the {body} tag of the default.hbs template --}} {{/if}}
{{/if}} + {{/match}}