Skip to content

Instantly share code, notes, and snippets.

@iamkeir
Created November 20, 2019 23:40
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 iamkeir/7b79c8fdbc4d2fb95ae2fd5c5dae5842 to your computer and use it in GitHub Desktop.
Save iamkeir/7b79c8fdbc4d2fb95ae2fd5c5dae5842 to your computer and use it in GitHub Desktop.
{% comment %}SECTION{% endcomment %}
{%
include 'hero'
hero_title: section.settings.title
%}
{% schema %}
{
"name": "Product hero",
"settings": [
{
"type": "text",
"id": "title",
"label": "Hero title"
}
]
}
{% endschema %}
{% assign hero_title = hero_title | default: 'Some title' %}
<div class="hero">
<div class="hero__item">
<h2 class="hero__item__title">{{ hero__title }}
</div>
</div><!--/hero-->
{% assign hero_title = blank %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment