Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jeremybise/twentynineteen-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'exampleSite/content/posts/post-with-featured-image.md')
-rwxr-xr-xexampleSite/content/posts/post-with-featured-image.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/exampleSite/content/posts/post-with-featured-image.md b/exampleSite/content/posts/post-with-featured-image.md
new file mode 100755
index 0000000..7cc6978
--- /dev/null
+++ b/exampleSite/content/posts/post-with-featured-image.md
@@ -0,0 +1,21 @@
+---
+title: "Post With Featured Image"
+date: "2018-10-01T16:15:09+08:00"
+draft: false
+tags:
+ - Demo
+ - Image
+image: /uploads/pexels-coffee.jpg
+---
+
+Just define the image URL in the content’s front matter, the featured image will be displayed as the background.
+
+For example:
+
+```yaml
+---
+image: 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.