Merge pull request #132 from DirtyF/default-image

Merge pull request 132
This commit is contained in:
jekyllbot 2016-10-23 09:18:22 -07:00 committed by GitHub
commit 970f750219
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.