mirror of
https://github.com/codeninjasuk/codeninjasuk.github.io.git
synced 2024-11-26 01:07:53 -05:00
21 lines
576 B
Markdown
21 lines
576 B
Markdown
---
|
|
title: "Post: Image (Linked with Caption)"
|
|
categories:
|
|
- Post Formats
|
|
tags:
|
|
- image
|
|
- Post Formats
|
|
---
|
|
|
|
{% capture fig_img %}
|
|
[![Foo](https://images.unsplash.com/photo-1541943869728-4bd4f450c8f5?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=800&fit=max&ixid=eyJhcHBfaWQiOjF9)](https://unsplash.com/)
|
|
{% endcapture %}
|
|
|
|
{% capture fig_caption %}
|
|
Image with a caption.
|
|
{% endcapture %}
|
|
|
|
<figure>
|
|
{{ fig_img | markdownify | remove: "<p>" | remove: "</p>" }}
|
|
<figcaption>{{ fig_caption | markdownify | remove: "<p>" | remove: "</p>" }}</figcaption>
|
|
</figure>
|