view tests/bakes/test_linker.yaml @ 657:c1a94e1beb9d

admin: Show a more classic blog post listing in FoodTruck.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 25 Feb 2016 22:30:16 -0800
parents 27b10024f8d8
children 45ad976712ec
line wrap: on
line source

---
in:
    pages/foo.md: |
        {%for c in family.children%}
        {{c.title}}
        {%endfor%}
outfiles:
    foo.html: ''
---
in:
    pages/foo.md: |
        {%for c in family.children-%}
        {{c.title}}
        {%endfor%}
    pages/foo/one.md: |
        ---
        title: One
        ---
    pages/foo/two.md: |
        ---
        title: Two
        ---
outfiles:
    foo.html: |
        One
        Two
---
in:
    pages/foo.md: |
        ---
        title: Foo
        ---
        {%for c in family.siblings-%}
        {{c.title}}{%if c.is_self%} SELFIE!{%endif%}
        {%endfor%}
    pages/bar.md: |
        ---
        title: Bar
        ---
    pages/other.md: |
        ---
        title: Other
        ---
outfiles:
    foo.html: |
        Bar
        Foo SELFIE!
        Other
---
in:
    pages/foo.md: "---\ntitle: Foo\n---\n"
    pages/foo/one.md: |
        {{family.parent.url}} {{family.parent.title}}
outfiles:
    foo/one.html: /foo.html Foo
---
in:
    pages/foo.md: "---\ntitle: Foo\n---\n"
    pages/foo/bar.md: "---\ntitle: Bar\n---\n"
    pages/foo/bar/one.md: |
        {{family.parent.url}} {{family.parent.title}}
        {{family.parent.parent.url}} {{family.parent.parent.title}}
outfiles:
    foo/bar/one.html: |
        /foo/bar.html Bar
        /foo.html Foo
---
in:
    pages/foo.md: "---\ntitle: Foo\n---\n"
    pages/foo/bar.md: "---\ntitle: Bar\n---\n"
    pages/foo/bar/one.md: |
        {% for p in family.ancestors -%}
        {{p.url}} {{p.title}}
        {% endfor %}
outfiles:
    foo/bar/one.html: |
        /foo/bar.html Bar
        /foo.html Foo