9 lines
587 B
HTML
9 lines
587 B
HTML
{% capture imagePath %}{{ page.date | date: "%Y-%m-%d" }}-{{ page.title | slugify }}/{{ include.name }}{% endcapture %}
|
|
{% if include.caption %}
|
|
<figure>
|
|
<img src="/assets/posts/{{ imagePath }}" {% if include.alt %} alt="{{ include.alt }}" {% endif %} {% if include.width %} width="{{ include.width }}" {% endif %}/>
|
|
<figcaption>{{ include.caption }}</figcaption>
|
|
</figure>
|
|
{% else %}
|
|
<img src="/assets/posts/{{ imagePath }}" {% if include.alt %} alt="{{ include.alt }}" {% endif %} {% if include.width %} width="{{ include.width }}" {% endif %}/>
|
|
{% endif %} |