_includes/image.html in minima-rock-0.9.2 vs _includes/image.html in minima-rock-0.9.3

- old
+ new

@@ -1,14 +1,14 @@ -{% if page.assets %} - {% capture imagePath %}{{ page.assets | slugify }}/{{ include.name }}{% endcapture %} -{% else %} - {% capture imagePath %}{{ page.title | slugify }}/{{ include.name }}{% endcapture %} -{% endif %} - -{% if include.caption %} -<figure> -<img src="{{ site.baseurl }}/static/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="{{ site.baseurl }}/static/assets/posts/{{ imagePath }}" {% if include.alt %} alt="{{ include.alt }}" {% endif %} {% if include.width %} width="{{ include.width }}" {% endif %}/> +{% if page.assets %} + {% capture imagePath %}{{ page.assets | slugify }}/{{ include.name }}{% endcapture %} +{% else %} + {% capture imagePath %}{{ page.title | slugify }}/{{ include.name }}{% endcapture %} +{% endif %} + +{% if include.caption %} +<figure> +<img src="{{ site.baseurl }}/static/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="{{ site.baseurl }}/static/assets/posts/{{ imagePath }}" {% if include.alt %} alt="{{ include.alt }}" {% endif %} {% if include.width %} width="{{ include.width }}" {% endif %}/> {% endif %} \ No newline at end of file