comparison tests/servings/test_theme.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
comparison
equal deleted inserted replaced
674:f987b29d6fab 675:3df808b133f8
1 ---
2 url: /
3 config:
4 site:
5 title: "Some Test"
6 in:
7 theme/theme_config.yml: "name: testtheme"
8 theme/pages/_index.md: "This is {{site.title}} by {{name}}"
9 theme/templates/default.html: "THEME: {{content}}"
10 out: "THEME: This is Some Test by testtheme"
11 ---
12 url: /foo.html
13 config:
14 site:
15 title: "Some Test"
16 foo: bar
17 in:
18 pages/foo.md: "This is: {{foo}} by {{name}}"
19 theme/theme_config.yml: "name: testtheme"
20 out: "This is: bar by testtheme"
21