1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 05:41:31 +00:00

Add abbreviation support for image width/height

This commit is contained in:
Cotes Chung
2021-12-07 00:50:01 +08:00
parent cf8dae9454
commit 790cf30376
2 changed files with 14 additions and 4 deletions

View File

@@ -78,9 +78,9 @@
{% capture _value %}{{ _attr | split: '=' | last | replace: '"', '' }}{% endcapture %}
{% case _key %}
{% when 'width' %}
{% when 'width', 'w' %}
{% assign _width = _value %}
{% when 'height' %}
{% when 'height', 'h' %}
{% assign _height = _value %}
{% endcase %}