view tests/bakes/test_theme_site.yaml @ 675:3df808b133f8

internal: Improve how theme configuration is validated and merged. * Add default theme config up-front so it benefits from the usual validation. * Add an explicit `use_default_theme_content` setting. * Add/fix unit tests.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 06 Mar 2016 23:49:41 -0800
parents
children 45ad976712ec
line wrap: on
line source

---
theme_config:
    site:
        title: "Some Test Theme"
in:
    pages/foo.md: "This is: {{site.title}}"
outfiles:
    foo.html: "This is: Some Test Theme"
---
theme_config:
    site:
        title: "Some Test Theme"
in:
    pages/foo.md: "This is: {{foo}}"
    configs/theme_preview.yml: "foo: bar"
outfiles:
    foo.html: "This is: bar"