{{#if homepage}} {{{homepage}}} {{else}} {{! Find each section, in order. If there's no markup or modifiers supplied, use a Markdown-only layout instead. The "root" element comes first in this loop, and can be detected using the "#whenDepth 1" block as seen below. }} {{#eachSection rootName}} {{#ifDepth 1}}

{{ header }}

{{else}}
{{ referenceURI }} {{ header }} {{/ifDepth}} {{#if markup}} {{#if description}}
{{{description}}}
{{/if}} {{{markup}}} {{#eachModifier}}

{{name}}

{{{description}}}
{{{markup}}}
{{/eachModifier}}
{{markup}}
{{else}} {{#if description}} {{{description}}} {{/if}} {{/if}} {{#ifDepth 1}} {{else}}
{{/ifDepth}} {{/eachSection}} {{/if}}