{{!-- Background image --}} {{#if @custom.background_image}} {{#match headerStyle "!=" "Magazine"}} {{#match headerStyle "!=" "Highlight"}} {{#if @site.cover_image}} {{@site.title}} {{/if}} {{/match}} {{/match}} {{/if}}
{{!-- Highlight layout --}} {{#match headerStyle "Highlight"}}
{{#foreach posts limit="1"}} {{> "post-card" imageSizes="(max-width: 767px) calc(100vw - max(8vmin, 40px)), 640px"}} {{/foreach}}
{{#foreach posts from="2" limit="3"}} {{> "post-card"}} {{/foreach}}
{{#if @custom.show_featured_posts}} {{> "components/featured" showFeatured=@custom.show_featured_posts limit=6}} {{else}} {{/if}}
{{/match}} {{!-- Magazine layout --}} {{#match headerStyle "Magazine"}} {{#foreach posts limit="7"}} {{#match @number 2}}
{{/match}} {{#match @number 5}}
{{/match}} {{#if @first}} {{> "post-card" imageSizes="640px"}} {{else}} {{> "post-card"}} {{/if}} {{#match @number 4}}
{{/match}} {{#match @number 7}}
{{/match}} {{/foreach}} {{/match}} {{!-- Landing layout --}} {{#match headerStyle "Landing"}}

{{#if @custom.header_text}}{{@custom.header_text}}{{else}}{{@site.description}}{{/if}}

{{> "email-subscription"}} {{/match}} {{!-- Search layout --}} {{#match headerStyle "Search"}}

{{#if @custom.header_text}}{{@custom.header_text}}{{else}}{{@site.description}}{{/if}}

{{> "icons/search"}}
{{/match}}