This commit is contained in:
rzen
2020-05-31 20:06:32 -04:00
parent 85ac90968a
commit d851f17631
3 changed files with 8 additions and 8 deletions

View File

@ -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 %}