Skip to content

Instantly share code, notes, and snippets.

@skipjac
Created December 24, 2015 06:50
Show Gist options
  • Save skipjac/e55735be3cf9f7875ee7 to your computer and use it in GitHub Desktop.
Save skipjac/e55735be3cf9f7875ee7 to your computer and use it in GitHub Desktop.
Find promoted articles in a single category using zendesk curly bars
{{#each categories}}
{{! CMS promoted articles }}
{{#is id 202178748}}
<h2>{{name}}</h2>
{{#each sections}}
{{#each articles}}
{{#if promoted}}
<li>
<a href="{{url}}">{{title}}</a>
</li>
{{/if}}
{{/each}}
{{/each}}
{{/is}}
{{/each}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment