How to Feature more than one article

Please is there an easy way to FEATURE more than One article on home.bs?
I would like to display past 3 FEATURED articles on the LANDING page.
Long ago, I used to use this code that I got from a blog I have forgotten the name to do exactly that, but it has stopped working.

{{#get "posts" include="tags,author" filter="featured:true" limit="all" as |featured|}}
		{{#foreach featured}}
			{{> "post-card"}}
		{{/foreach}}
	{{/get}}
	{{#foreach posts}}
		{{^if featured}}
			{{> "post-card"}}
		{{/if}}
	{{/foreach}}

The error I get is “invalid handlebars …”
So what’s wrong with the code, AND, is there an easier way to display 3 FEATURED posts?

What will work depends a lot on the theme. I’ll guess this code doesn’t work because your theme doesn’t have a post-card.hbs in the partials directory?

1 Like

Thank you! You are correct, I forgot to upload it.