---
in:
    pages/foo.html: |
        {%for c in family.children%}
        {{c.title}}
        {%endfor%}
outfiles:
    foo.html: ''
---
in:
    pages/foo.html: |
        {%for c in family.children|sort(attribute='title')-%}
        {{c.title}}
        {%endfor%}
    pages/foo/one.html: |
        ---
        title: One
        ---
    pages/foo/two.html: |
        ---
        title: Two
        ---
outfiles:
    foo.html: |
        One
        Two
---
in:
    pages/foo.html: |
        ---
        title: Foo
        date: '2010/01/07'
        ---
        {%for c in family.siblings|sort(attribute='title')-%}
        {{c.title}}{%if c.is_self%} SELFIE!{%endif%}
        {%endfor%}
    pages/bar.html: |
        ---
        title: Bar
        date: '2010/01/08'
        ---
    pages/other.html: |
        ---
        title: Other
        date: '2010/01/06'
        ---
outfiles:
    foo.html: |
        Bar
        Foo SELFIE!
        Other
---
in:
    pages/foo.html: "---\ntitle: Foo\n---\n"
    pages/foo/one.html: |
        {{family.parent.url}} {{family.parent.title}}
outfiles:
    foo/one.html: /foo.html Foo
---
in:
    pages/foo.html: "---\ntitle: Foo\n---\n"
    pages/foo/bar.html: "---\ntitle: Bar\n---\n"
    pages/foo/bar/one.html: |
        {{family.parent.url}} {{family.parent.title}}
        {{family.ancestors[1].url}} {{family.ancestors[1].title}}
outfiles:
    foo/bar/one.html: |
        /foo/bar.html Bar
        /foo.html Foo
---
in:
    pages/foo.html: "---\ntitle: Foo\n---\n"
    pages/foo/bar.html: "---\ntitle: Bar\n---\n"
    pages/foo/bar/one.html: |
        {% for p in family.ancestors -%}
        {{p.url}} {{p.title}}
        {% endfor %}
outfiles:
    foo/bar/one.html: |
        /foo/bar.html Bar
        /foo.html Foo

