ghost-theme-sd.ai/partials/components/featured.hbs
Sodbileg Gansukh fa133aa6ad CTA
2023-07-26 16:03:19 +08:00

16 lines
590 B
Handlebars

{{#if showFeatured}}
{{#get "posts" filter="featured:true" include="authors" limit=limit 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}}