ghost-theme-sd.ai/partials/components/featured.hbs
Sodbileg Gansukh db2de86339 Optimization
2023-09-19 21:19:25 +08:00

14 lines
532 B
Handlebars

{{#if showFeatured}}
{{#get "posts" filter="featured:true" include="authors" limit=limit as |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}}
{{> "post-card" imageSizes="80px"}}
{{/foreach}}
</div>
</div>
</section>
{{/get}}
{{/if}}