view tests/bakes/test_theme.yaml @ 1138:c8fb7b024faa

bake: Disable `uglifyjs` and `cleancss` by default. There's a good chance a new user doesn't have them installed.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 20 May 2018 22:20:00 -0700
parents 45ad976712ec
children
line wrap: on
line source

---
config:
    site:
        title: "Some Test"
        default_page_layout: 'none'
    foo: bar
in:
    pages/foo.html: "This is: {{foo}}, with no template"
    theme/theme_config.yml: "name: testtheme"
    theme/pages/_index.html: "This is {{site.title}} by {{name}}, with theme template"
    theme/templates/default.html: "THEME: {{content}}"
outfiles:
    index.html: "THEME: This is Some Test by testtheme, with theme template"
    foo.html: "This is: bar, with no template"
---
config:
    site:
        default_page_layout: 'custom'
in:
    pages/foo.html: "FOO"
    pages/bar.html: "---\nlayout: blah\n---\nBAR"
    templates/custom.html: "CUSTOM: {{content}}"
    theme/theme_config.yml: "site: {sources: {theme_pages: {default_layout: blah}}}"
    theme/pages/_index.html: "theme index"
    theme/pages/about.html: "about"
    theme/templates/blah.html: "THEME: {{content}}"
outfiles:
    index.html: "THEME: theme index"
    about.html: "THEME: about"
    foo.html: "CUSTOM: FOO"
    bar.html: "THEME: BAR"