{{!-- This is a partial file used to generate a post "card" which templates loop over to generate a list of posts. --}}
{{#if feature_image}} {{!-- This is a responsive image, it loads different sizes depending on device https://medium.freecodecamp.org/a-guide-to-responsive-images-with-ready-to-use-templates-c400bd65c433 --}} {{#if feature_image_alt}}{{feature_image_alt}}{{else}}{{title}}{{/if}} {{#unless access}} {{^has visibility="public"}}
{{> "icons/lock"}} {{#has visibility="members"}} Members only {{else}} Paid-members only {{/has}}
{{/has}} {{/unless}}
{{/if}}
{{#primary_tag}} {{name}} {{/primary_tag}} {{#if featured}} {{> "icons/fire"}} Featured {{/if}}

{{#unless access}} {{^has visibility="public"}} {{#unless feature_image}} {{> "icons/lock"}} {{/unless}} {{/has}} {{/unless}} {{title}}

{{#if excerpt}}
{{excerpt}}
{{/if}}