Skip to content

Instantly share code, notes, and snippets.

@basturzoiu
Created January 14, 2019 10:58
Show Gist options
  • Save basturzoiu/d757f89cd3247b664885ca333ebba4c1 to your computer and use it in GitHub Desktop.
Save basturzoiu/d757f89cd3247b664885ca333ebba4c1 to your computer and use it in GitHub Desktop.
Sample category page with a block design for sections
<div class="container-divider"></div>
<div class="container">
<nav class="sub-nav">
{{breadcrumbs}}
{{search submit=false scoped=true}}
</nav>
<div class="category-container">
<div class="category-content">
<header>
<h1>{{category.name}}</h1>
</header>
<section class="categories blocks">
<ul class="blocks-list">
{{#each sections}}
<li class="blocks-item">
<a href='{{url}}' class="blocks-item-link">
<h4 class="blocks-item-title">{{name}}</h4>
<p class="blocks-item-description">{{excerpt description}}</p>
</a>
{{#if internal}}
<span class="icon-lock" title="{{t 'internal'}}"></span>
{{/if}}
</li>
{{/each}}
</ul>
</section>
</div>
</div>
</div>
@pettop31
Copy link

'internal' does not exist. What to do? And where to insert the code in category_page.hbs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment