Allow Markdown for header.image.caption

- Simplify and remove extra variables by condensing into one
This commit is contained in:
Michael Rose
2016-02-25 08:15:54 -05:00
parent 63f8c36348
commit acd8720126
7 changed files with 7 additions and 19 deletions

View File

@@ -24,8 +24,8 @@ layout: compress
"{{ page.header.image | prepend: "/images/" | prepend: absurl }}"
{% endif %}
alt="{{ page.title }}">
{% if page.header.credit %}
<span class="image-credit">Photo Credit: <a href="{{ page.header.credit.url }}">{{ page.header.credit.caption }}</a></span>
{% if page.header.caption %}
<span class="image-caption">{{ page.header.caption | markdownify | remove: "<p>" | remove: "</p>" }}</span>
{% endif %}
</div><!-- /.image-wrap -->
{% endif %}