bugfix
This commit is contained in:
@ -2,15 +2,11 @@
|
||||
|
||||
{% capture src %}src="{{ imagePath }}"{% endcapture %}
|
||||
|
||||
{% assign alt=include.alt | default: "" %}
|
||||
{% if alt != blank %}
|
||||
{% capture alt %}alt="{{ include.alt }}" title="{{ include.alt}}"{% endcapture %}
|
||||
{% endif %}
|
||||
|
||||
{% assign caption=include.caption | default: "" %}
|
||||
{% assign alt=include.alt | default: caption %}
|
||||
|
||||
{% if alt == blank and caption != blank %}
|
||||
{% assign alt=caption %}
|
||||
{% if alt != blank %}
|
||||
{% capture alt %}alt="{{ alt }}" title="{{ alt }}"{% endcapture %}
|
||||
{% endif %}
|
||||
|
||||
{% assign frame=include.frame | default: true %}
|
||||
|
Reference in New Issue
Block a user