Add front matter default example for image

This commit is contained in:
Frank Taillandier 2016-10-23 16:28:56 +02:00
parent 6d133fd352
commit 753173df76
No known key found for this signature in database
GPG Key ID: E73258E3F50AEB7E
1 changed files with 14 additions and 0 deletions

View File

@ -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.