1.0.2 • Published 5 years ago

aitomic-o-hero v1.0.2

Weekly downloads
9
License
SEE LICENSE IN li...
Repository
-
Last release
5 years ago

A template of page hero.

How to install:

  1. Create empty file named 'o-hero.latte' into theme structure.
  2. Include a hero template into this created file using macro {layout '../path-to-latte-template'}.
  3. Include created file into '@layout.default.latte' (and other places like template of GenericList detail) using macro {include 'o-hero.latte'}.
  4. 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">
        &darr;
    </a>
{/block}

Check {latte} source template to discover available hooks to customization.

Optionally set variables for CSS classes:

{default $componentClass = ''}
{default $itemClass = ''}