Use images instead of featuredImg

`featuredImg` and `bgImg` are preserved in case you want to use a different background image from metadata images
This commit is contained in:
Track3 2018-12-31 20:03:32 +08:00
parent f5b68c452f
commit 4b2192f2fa
6 changed files with 41 additions and 16 deletions

View file

@ -2,7 +2,8 @@
title: "Post With Featured Image"
date: 2018-10-01T16:15:09+08:00
draft: false
featuredImg: "https://picsum.photos/1024/768/?random"
images:
- https://picsum.photos/1024/768/?random
tags:
- Demo
- Image
@ -13,5 +14,10 @@ Just define the image URL in the contents front matter, the featured image wi
For example:
```yaml
featuredImg: "https://picsum.photos/1024/768/?random"
```
---
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](https://developer.twitter.com/en/docs/tweets/optimize-with-cards/guides/getting-started.html) and the [Open Graph](http://ogp.me/) metadata.