hermit-V2/exampleSite/content/posts/post-with-featured-image.md
Track3 4b2192f2fa Use images instead of featuredImg
`featuredImg` and `bgImg` are preserved in case you want to use a different background image from metadata images
2018-12-31 20:08:04 +08:00

633 B
Raw Blame History

title date draft images tags
Post With Featured Image 2018-10-01T16:15:09+08:00 false
https://picsum.photos/1024/768/?random
Demo
Image

Just define the image URL in the contents front matter, the featured image will be displayed as the background.

For example:

---
images:
  - https://picsum.photos/1024/768/?random
---

This is an array, you can set multiple urls, only the first url will be used. These images is also used in Twitter Cards and the Open Graph metadata.