{#.children} {@gt key=$idx value=0}
{/gt}
{?.title}{?.self_link}{.title}{:else}
{.title}
{/.self_link}{/.title} {! TODO: date? !}
{! TODO: Table of contents? !}
{#.children} {>document_element/} {/.children} {?.footnotes}

Footnotes:

{#.footnotes} {>real_footnote_definition/} {/.footnotes} {/.footnotes}
{/.children} {#.stream_pagination}
{?.older_link}Older{/.older_link} {?.newer_link}Newer{/.newer_link}
{/.stream_pagination}