File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 170170
171171 {% else %}
172172 <!-- make sure the `<img>` is wrapped by `<a>` -->
173- {% assign _parent = _right | slice: 1, 4 %}
173+ {% assign _parent = _right | remove_first: " > " | strip | slice: 0, 3 %}
174174
175175 {% if _parent == '</ a> ' %}
176- <!-- add class to exist <a> tag -->
177- {% assign _size = _img_content | size | minus: 1 %}
176+ <!-- add class to existing <a> tag -->
177+ {% assign _size = _img_content | strip | size | minus: 1 %}
178178 {% capture _class %}
179179 class="img-link{% unless _lqip %} shimmer{% endunless %}"
180180 {% endcapture %}
181- {% assign _img_content = _img_content | slice: 0, _size | append: _class | append: '> ' %}
181+ {% assign _img_content = _img_content | strip | slice: 0, _size | append: _class | append: '> ' %}
182182
183183 {% else %}
184184 <!-- create the image wrapper -->
You can’t perform that action at this time.
0 commit comments