1.0.2 • Published 5 years ago
aitomic-o-hero v1.0.2
A template of page hero.
How to install:
- Create empty file named 'o-hero.latte' into theme structure.
- Include a hero template into this created file using macro
{layout '../path-to-latte-template'}
. - Include created file into '@layout.default.latte' (and other places like template of GenericList detail) using macro
{include 'o-hero.latte'}
. - Optionally add available macros
{block}
to customization:
{layout '../path-to-latte-template'}
{block #heroSubtitle}
<p n:if="$subtitle" class="o-hero__subtitle">{$subtitle|preWrap|noescape}</p>
{/block}
{block #heroBottom}
<a n:if="$size == 'big'" href="#{$anchor}" class="o-hero__arrow">
↓
</a>
{/block}
Check {latte} source template to discover available hooks to customization.
Optionally set variables for CSS classes:
{default $componentClass = ''}
{default $itemClass = ''}