{{!-- Parameters: * layout (grid, magazine) * count (number) * columns (number) * slug (tag) * showHeader (true, false) * showPrimaryTag (true, false) * showPrimaryAuthor (true, false) * showExcerpt (true, false) * showPublishedAt (true, false) * showReadingTime (true, false) * hasPagination (true, false) --}}
{{#if showHeader}} {{#if slug}} {{#get "tags" filter="slug:{{slug}}"}} {{#foreach tags}}

{{name}}

View all →
{{/foreach}} {{/get}} {{else}}

Latest

View all →
{{/if}} {{/if}} {{#if hasPagination}}
{{#foreach posts}} {{> components/list-item showPrimaryTag=../showPrimaryTag showExcerpt=../showExcerpt showPrimaryAuthor=../showPrimaryAuthor showPublishedAt=../showPublishedAt}} {{/foreach}}
{{else}}
{{#if slug}} {{#get "posts" include="tags,authors" filter="tag:{{slug}}" limit=count}} {{#foreach posts}} {{> components/list-item showPrimaryTag=../../showPrimaryTag showExcerpt=../../showExcerpt showPrimaryAuthor=../../showPrimaryAuthor showPublishedAt=../../showPublishedAt}} {{/foreach}} {{/get}} {{else}} {{#get "posts" include="tags,authors" limit=count}} {{#foreach posts}} {{> components/list-item showPrimaryTag=../../showPrimaryTag showExcerpt=../../showExcerpt showPrimaryAuthor=../../showPrimaryAuthor showPublishedAt=../../showPublishedAt}} {{/foreach}} {{/get}} {{/if}}
{{/if}}