web - Jekyll - Front Matter defaults not working -


using jekyll 2.5.3, i've tried set default values in _config.yml (i'm playing around feel right now). i'm trying set default layout right on site i'm serving locally. have set --watch , that's working fine. when set yaml defaults in _config.yml, jekyll not apply defaults @ all.

here's config file i'm using:

name: jekyll test description: test server  url: "http://localhost:4000"  markdown: rdiscount permalink: pretty  defaults:   -     scope:       path: ""     values:       layout: "default" 

the default layout not applied page. i've tried title well, same result.

my index.md:

--- title: index ----  {{  page.title  }} 

my default.html:

<style>     body {         background-color: black;         color: white;         font-family: "helvetica", arial, sans-serif;     } </style>  <body>     {{  content  }} </body> 

the default layout works fine when put yaml front matter of index page itself, main reason i'm looking can apply default.html 404 pages. other elements in config.yml aren't giving me trouble. there i've done wrong?

fixed myself - --watch not listen changes files aren't included in site (namely _config.yml, used generate pages @ runtime). apply changes site configuration, had restart jekyll , feel little stupid.

bottom line: have learned lesson. if changes don't appear saving, turn off , on again before asking.


Comments