+{{#if template.isHomepage}} + {{#if homepage}} +
+ {{{homepage}}} +
+ {{/if}} +{{else}} + + {{! + Display each section, in order. + + The "root" element comes first in this loop, and can be detected using + the "#if @first" block as seen below. + }} + {{#each sections}} + <{{#if @first}}div{{else}}section{{/if}} id="kssref-{{referenceURI}}" class="kss-section kss-section--depth-{{depth}} {{#if @root.template.isItem}}is-fullscreen{{/if}}"> + +
+ + + + {{referenceNumber}} + + {{#if @root.hasNumericReferences}} + #permalink + {{else}} + #{{reference}} + {{/if}} + + + {{header}} + + + + {{#if description}} +
+ {{{description}}} +
+ {{/if}} + + {{#if parameters}} +
Parameters:
+
    + {{#each parameters}} +
  • +
    {{name}}
    +
    + {{{description}}} + {{#if defaultValue}} +
    + Defaults to: {{defaultValue}} +
    + {{/if}} +
    +
  • + {{/each}} +
+ {{/if}} +
+ + {{#if example}} +
+
+ Example{{#if modifiers}}s{{/if}} +
+ + {{#if modifiers}} +
+ Default styling +
+ {{/if}} + +
+ {{{example}}} + +
+ + {{#each modifiers}} +
+ {{name}} +
+
+ {{{description}}} +
+
+ {{{markup}}} + +
+ {{/each}} +
+ + {{#if markup}} +
+ + {{#if markupFile }} + Markup: {{ markupFile }} + {{else}} + Markup + {{/if}} + +
{{markup}}
+
+ {{/if}} + {{/if}} + + {{#if source.filename}} +
+ Source: {{source.filename}}, line {{source.line}} +
+ {{/if}} + + + {{/each}} +{{/if}} +