featuredImage

featuredImage shortcode displays the featured image specified in the image front-matter.

You can use {{< featuredImage >}} shortcode anywhere in your post.

You can also set optional params like this. {{< featuredImage alt="featured image" width=50 height=50 >}}

1
2
3
4
5
6
7
---
title:
...
image: images/my-featured-image.png
---

{{< featuredImage >}}