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:
@@ -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 %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user