aboutsummaryrefslogtreecommitdiff
path: root/exampleSite/content/posts/post-with-featured-image.md
diff options
context:
space:
mode:
authorTrack3 <pengliabc@live.cn>2018-10-23 13:15:50 +0800
committerTrack3 <pengliabc@live.cn>2018-10-23 13:15:50 +0800
commit44dbcd6f34c676cefbacf12f18d9883c597a681a (patch)
tree86610dc396b64baf3f2c4ef00a3b84dc6c1d2bde /exampleSite/content/posts/post-with-featured-image.md
downloadhermit-44dbcd6f34c676cefbacf12f18d9883c597a681a.tar.gz
First commit
Diffstat (limited to 'exampleSite/content/posts/post-with-featured-image.md')
-rw-r--r--exampleSite/content/posts/post-with-featured-image.md17
1 files changed, 17 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 100644
index 0000000..cde54fb
--- /dev/null
+++ b/exampleSite/content/posts/post-with-featured-image.md
@@ -0,0 +1,17 @@
+---
+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 content’s front matter, the featured image will be displayed as the background.
+
+For example:
+
+```yaml
+featuredImg: "https://picsum.photos/1024/768/?random"
+``` \ No newline at end of file