Is foreach required when using get?

Is #foreach required when using #get or can you use #post? I looked through documentation and it wasn’t clear. Sorry for such a short post. :innocent:

Yes, when you are working with a list of posts the {{#foreach}} is needed to give you the post context.
The {{#post}} is available in the post layout for a single post.

2 Likes

Thanks. I was wondering why I couldn’t get it working without the foreach. When I get some more time I might dig into why the homepage has an array while the post layout i’m guessing is not.