view tests/bakes/test_simple_categories.yaml @ 1136:5f97b5b59dfe

bake: Optimize cache handling for the baking process. - Get rid of the 2-level pipeline runs... handle a single set of passes. - Go back to load/render segments/layout passes for pages. - Add descriptions of what each job batch does. - Improve the taxonomy pipeline so it doesn't re-bake terms that don't need to be re-baked. - Simplify some of the code.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 23 Apr 2018 21:47:49 -0700
parents 45ad976712ec
children
line wrap: on
line source

---
config:
    site:
        category_url: cat/%category%
in:
    posts/2015-03-01_post01.html: |
      ---
      title: Post 01
      category: foo
      ---
    posts/2015-03-02_post02.html: |
      ---
      title: Post 02
      category: bar
      ---
    posts/2015-03-03_post03.html: |
      ---
      title: Post 03
      category: foo
      ---
    templates/_category.html: |
      Pages in {{category}}
      {% for p in pagination.posts -%}
      {{p.title}}
      {% endfor %}
    pages/link.html: 'Link: {{pccaturl("bar")}}'
    pages/_index.html: ''
outfiles:
    index.html: ''
    '2015/03/01/post01.html': ''
    '2015/03/02/post02.html': ''
    '2015/03/03/post03.html': ''
    link.html: 'Link: /cat/bar.html'
    'cat/foo.html': |
        Pages in foo
        Post 03
        Post 01
    'cat/bar.html': |
        Pages in bar
        Post 02