Skip to content

Instantly share code, notes, and snippets.

@dooman87
Created March 26, 2019 22:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dooman87/d9793b4f6f20ccbbf9d3fb7c1e8c7b8d to your computer and use it in GitHub Desktop.
Save dooman87/d9793b4f6f20ccbbf9d3fb7c1e8c7b8d to your computer and use it in GitHub Desktop.
<div class="hero hero--{{ section.settings.hero_size }}{% if section.settings.title != blank or section.settings.text != blank or section.settings.button_label != blank %} hero__overlay{% endif %} box ratio-container lazyload js"
{% if section.settings.image %}
data-bgset="{% include 'bgset', image: section.settings.image %}"
data-sizes="auto"
data-parent-fit="cover"
style="background-position: {{ section.settings.alignment }}; background-image: url('{{ section.settings.image | img_url: '300x300' }});"
{% endif %}>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment