mmistakes / jekyll-theme-skinny-bones

A Jekyll starter with a variety of flexible layouts and components.
https://mmistakes.github.io/jekyll-theme-skinny-bones
MIT License
802 stars 907 forks source link

specific teaser image not showing #44

Closed adeldaoud closed 9 years ago

adeldaoud commented 9 years ago

Hi

A simple question. I want to add a specific image for the blog posts and added therefore a “teaser:” in the front matter. Like this:


layout: article title: "At the School" categories: articles modified: 2015-08-27T11:57:41-04:00 tags: [sample] comments: false ads: false teaser: nssr.jpg image:

feature: nssr.jpg

The default teaser is appearing though. Any ideas what is wrong?

mmistakes commented 9 years ago

Your YAML is incorrect. teaser and feature have to be indented below image. For example like this.

image:
  teaser: teaser.jpg
  feature: feature.jpg

Take a look at the sample posts in the gh-pages examples to see how I did it for the demo site.