hacks-guide-minimal-mistake.../example/_posts/2010-08-06-post-image-linked-caption.md
2016-09-21 22:13:25 -04:00

21 lines
No EOL
521 B
Markdown
Executable file

---
title: "Post: Image (Linked with Caption)"
categories:
- Post Formats
tags:
- image
- Post Formats
---
{% capture fig_img %}
[![Foo](https://farm5.staticflickr.com/4134/4940462712_7c28420b27_b.jpg)](https://flic.kr/p/8wzarA)
{% endcapture %}
{% capture fig_caption %}
Stairs? Were we're going we don't need no stairs.
{% endcapture %}
<figure>
{{ fig_img | markdownify | remove: "<p>" | remove: "</p>" }}
<figcaption>{{ fig_caption | markdownify | remove: "<p>" | remove: "</p>" }}</figcaption>
</figure>