{% capture imagePath %}{{ page.date | date: "%Y-%m-%d" }}-{{ page.title | slugify }}/{{ include.name }}{% endcapture %} {% if include.caption %} {{ include.caption }} {% else %} {% endif %}