hermit-V2/exampleSite/content/posts/post-with-featured-image.md
2018-10-23 13:15:50 +08:00

17 lines
No EOL
364 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: "Post With Featured Image"
date: 2018-10-01T16:15:09+08:00
draft: false
featuredImg: "https://picsum.photos/1024/768/?random"
tags:
- Demo
- Image
---
Just define the image URL in the contents front matter, the featured image will be displayed as the background.
For example:
```yaml
featuredImg: "https://picsum.photos/1024/768/?random"
```