mirror of
https://github.com/ViViDboarder/Vivid-Casper.git
synced 2024-12-22 11:37:38 +00:00
Post image style setting
This commit is contained in:
parent
5fc101fb2c
commit
c74be0e346
@ -144,12 +144,13 @@
|
||||
],
|
||||
"default": "Light"
|
||||
},
|
||||
"post_image_width": {
|
||||
"post_image_style": {
|
||||
"type": "select",
|
||||
"options": [
|
||||
"Wide",
|
||||
"Full",
|
||||
"Small"
|
||||
"Small",
|
||||
"Hidden"
|
||||
],
|
||||
"default": "Wide",
|
||||
"group": "post"
|
||||
|
4
post.hbs
4
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 --}}
|
||||
|
||||
<main id="site-main" class="site-main">
|
||||
<article class="article {{post_class}} {{#match @custom.post_image_width "Full"}}image-full{{else match @custom.post_image_width "=" "Small"}}image-small{{/match}}">
|
||||
<article class="article {{post_class}} {{#match @custom.post_image_style "Full"}}image-full{{else match @custom.post_image_style "=" "Small"}}image-small{{/match}}">
|
||||
|
||||
<header class="article-header gh-canvas">
|
||||
|
||||
@ -52,6 +52,7 @@ into the {body} tag of the default.hbs template --}}
|
||||
</section>
|
||||
</div>
|
||||
|
||||
{{#match @custom.post_image_style "!=" "Hidden"}}
|
||||
{{#if feature_image}}
|
||||
<figure class="article-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}}
|
||||
</figure>
|
||||
{{/if}}
|
||||
{{/match}}
|
||||
|
||||
</header>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user