From 753173df765759a1f6a12c3762766c0efcb43e7b Mon Sep 17 00:00:00 2001 From: Frank Taillandier Date: Sun, 23 Oct 2016 16:28:56 +0200 Subject: [PATCH] Add front matter default example for image --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 4a90e07..4c1c199 100644 --- a/README.md +++ b/README.md @@ -184,6 +184,20 @@ image: width: 100 ``` +### Setting a default image + +You can define a default image using [Front Matter default](https://jekyllrb.com/docs/configuration/#front-matter-defaults), to provide a default Twitter Card or OGP image to all of your posts and pages. + +Here is a very basic example, that you are encouraged to adapt to your needs: + +```yml +defaults: + - scope: + path: "" + values: + image: /assets/images/default-card.png +``` + ### SmartyPants Titles Titles will be processed using [Jekyll's `smartify` filter](https://jekyllrb.com/docs/templates/). This will use SmartyPants to translate plain ASCII punctuation into "smart" typographic punctuation. This will not render or strip any Markdown you may be using in a page title.