Fix wrong aspect ratio in pages

Pages have no columns, so we had to account for that.
This commit is contained in:
Lorenzo Dellacà
2021-03-17 16:54:14 +01:00
parent 63be0bf650
commit fbf125bf20
2 changed files with 99 additions and 18 deletions

View File

@@ -13,22 +13,24 @@
<div class="mind-post_central-column">
{{#post}}
<div class="mind-post_content"> {{!-- Keeping this div to have the same structure as the post.hbs, even though not necessary --}}
<div class="mind-post_content-header">
<div class="mind-page_main">
<div class="mind-post_content-header">
{{#if feature_image}}
<img class="mind-post_feature-image" alt="{{title}}"
srcset="
{{img_url feature_image size="s"}} 300w,
{{img_url feature_image size="m"}} 600w,
{{img_url feature_image size="l"}} 1200w,
{{img_url feature_image size="xl"}} 1600w,
{{img_url feature_image size="xxl"}} 2000w"
src="{{img_url feature_image size="l"}}"
/>
{{#if feature_image}}
<img class="mind-post_feature-image" alt="{{title}}"
srcset="
{{img_url feature_image size="s"}} 300w,
{{img_url feature_image size="m"}} 600w,
{{img_url feature_image size="l"}} 1200w,
{{img_url feature_image size="xl"}} 1600w,
{{img_url feature_image size="xxl"}} 2000w"
src="{{img_url feature_image size="l"}}"
/>
{{/if}}
{{/if}}
</div>
{{content}}
</div>
{{content}}
</div>
{{/post}}
</div>