ghost-theme-sd.ai/partials/components/featured.hbs

16 lines
570 B
Handlebars
Raw Normal View History

2023-07-10 06:31:23 +01:00
{{#if showFeatured}}
{{#get "posts" filter="featured:true" limit="4" as |featured|}}
{{#if featured}}
<section class="gh-featured gh-outer">
<div class="gh-featured-inner gh-inner">
<h2 class="gh-featured-title">Featured</h2>
<div class="gh-featured-feed">
{{#foreach featured}}
{{> "loop"}}
{{/foreach}}
</div>
</div>
</section>
{{/if}}
{{/get}}
{{/if}}