aboutsummaryrefslogtreecommitdiff
path: root/exampleSite/content
diff options
context:
space:
mode:
authorTrack3 <pengliabc@live.cn>2018-12-31 20:03:32 +0800
committerTrack3 <pengliabc@live.cn>2018-12-31 20:08:04 +0800
commit4b2192f2fa89f10d09fabc48105465865ef01943 (patch)
treefaf5519751b4994ccbeb1b8558295528317c2f87 /exampleSite/content
parentf5b68c452f6df102ee2e40e638cb8988798099ef (diff)
downloadhermit-4b2192f2fa89f10d09fabc48105465865ef01943.tar.gz
Use `images` instead of `featuredImg`
`featuredImg` and `bgImg` are preserved in case you want to use a different background image from metadata images
Diffstat (limited to 'exampleSite/content')
-rw-r--r--exampleSite/content/posts/post-with-featured-image.md12
1 files changed, 9 insertions, 3 deletions
diff --git a/exampleSite/content/posts/post-with-featured-image.md b/exampleSite/content/posts/post-with-featured-image.md
index cde54fb..c42ff5c 100644
--- a/exampleSite/content/posts/post-with-featured-image.md
+++ b/exampleSite/content/posts/post-with-featured-image.md
@@ -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 content’s front matter, the featured image wi
For example:
```yaml
-featuredImg: "https://picsum.photos/1024/768/?random"
-``` \ No newline at end of file
+---
+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.