From 4b6ccbcbccce27b9fcb035812efefe4eb69301cf Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Thu, 15 Dec 2022 03:18:27 +0800 Subject: [PATCH] feat: set preview image ratio to 1.91 : 1 --- _layouts/post.html | 18 +----------------- _sass/layout/post.scss | 6 ++++++ 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/_layouts/post.html b/_layouts/post.html index a55031e..367def5 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -31,22 +31,6 @@ tail_includes: {% capture class %}class="preview-img{% if page.image.no_bg %}{{ ' no-bg' }}{% endif %}"{% endcapture %} {% capture alt %}alt="{{ page.image.alt | default: "Preview Image" }}"{% endcapture %} - {% capture w %} - {% if page.image.width %} - width="{{ page.image.width }}" - {% elsif page.image.w %} - width="{{ page.image.w }}" - {% endif %} - {% endcapture %} - - {% capture h %} - {% if page.image.height %} - height="{{ page.image.height }}" - {% elsif page.image.h %} - h="{{ page.image.h }}" - {% endif %} - {% endcapture %} - {% capture lqip %} {% if page.image.lqip %} lqip="{{ page.image.lqip }}" @@ -54,7 +38,7 @@ tail_includes: {% endcapture %}