hacks-guide-minimal-mistake.../_posts/2010-08-06-post-image-linked-caption.md

21 lines
521 B
Markdown
Raw Normal View History

---
2016-03-04 18:37:24 +01:00
title: "Post: Image (Linked with Caption)"
categories:
- Post Formats
tags:
- image
- Post Formats
---
2016-03-07 15:51:50 +01:00
{% capture fig_img %}
2016-03-25 15:21:08 +01:00
[![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>
2016-03-25 15:21:08 +01:00
{{ fig_img | markdownify | remove: "<p>" | remove: "</p>" }}
<figcaption>{{ fig_caption | markdownify | remove: "<p>" | remove: "</p>" }}</figcaption>
</figure>