Sha256: 9d6e4b4b297794e37a63114655a690a22d66f9112c4559993571c11f0e439325

Contents?: true

Size: 924 Bytes

Versions: 1

Compression:

Stored size: 924 Bytes

Contents

{%- assign hero_data = include.data -%}

{%- assign hero_style = "" -%}
{%- if hero_data.image -%}
  {%- assign hero_style = hero_style | append: "background-image: url(" | append: hero_data.image | append: ");" -%}
{%- endif -%}
{%- if hero_data.height -%}
  {%- assign hero_style = hero_style | append: "height: " | append: hero_data.height | append: ";" -%}
{%- endif -%}

<div class="l-hero {%- if hero_data.overflow %} l-hero--overflow{%- endif -%}">
  <div class="c-hero" style="{{- hero_style -}}">
    {%- if hero_data.title -%}
      <div class="c-hero__title">
        {{- hero_data.title -}}
      </div>
    {%- endif -%}
    {%- if hero_data.description -%}
      <div class="c-hero__description">
        {{- hero_data.description -}}
      </div>
    {%- endif -%}
    {%- if hero_data.links -%}
      <div class="c-hero__links">
        {{- hero_data.links -}}
      </div>
    {%- endif -%}
  </div>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
databook-theme-0.1.2 _includes/layout/hero.liquid