{"_id":"5937b2388e8d9b002f1df297","category":{"_id":"5937b2388e8d9b002f1df272","version":"5937b2378e8d9b002f1df26e","project":"542fe92a5eceb608003fddc8","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-10-04T12:45:40.548Z","from_sync":false,"order":3,"slug":"helper-reference","title":"Helper Reference"},"user":"542c5cfcddd3190e00228849","parentDoc":null,"project":"542fe92a5eceb608003fddc8","version":{"_id":"5937b2378e8d9b002f1df26e","project":"542fe92a5eceb608003fddc8","__v":1,"createdAt":"2017-06-07T07:58:47.936Z","releaseDate":"2017-06-07T07:58:47.936Z","categories":["5937b2388e8d9b002f1df26f","5937b2388e8d9b002f1df270","5937b2388e8d9b002f1df271","5937b2388e8d9b002f1df272","5937b2388e8d9b002f1df273","5937b2388e8d9b002f1df274"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0.0"},"__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-04-07T19:55:00.490Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":47,"body":"Usage:  `{{#post}}{{/post}}` or `{{#foreach posts}}{{/foreach}}`\n\n## Description\n\nWhen on a single post template such as [post.hbs](/docs/structure#post-hbs) or [page.hbs](/docs/structure#page-hbs), outputting the details of your posts can be done with a [block expression](/docs/handlebars#block-expressions-scopes-).\n\nThe block expression `{{#post}}{{/post}}` isn't strictly a 'helper'. You can do this with any object in a template to access the nested attributes e.g. you can also use `{{#author}}{{/author}}` inside of the post block to get to the author's name and other attributes. \n\nWhen inside a post list such as [index.hbs](/docs/structure#index-hbs) or [tag.hbs](/docs/structure#index-hbs) where there is more than one post, it is common to use the [{{#foreach post}}{{/foreach}} helper](doc:foreach) to iterate through the list.\n\nWhen inside a `{{#foreach posts}}{{/foreach}}` or `{{#post}}{{/post}}` block (i.e. when inside the post scope), theme authors have access to all of the properties and helpers detailed on this page.\n\n## Post Attributes\n\nThe full [list of post attributes](/docs/post-context#post-object-attributes) and more information about outputting posts can be found in the [post context](doc:post-context) documentation.\n\n## Static pages\n\nWhen outputting a static page, you can use the same `{{#post}}{{/post}}` block expression, and all the same helpers you can use for a post.\n\n## Featured posts\n\nFeatured posts get an extra class so that they can be styled differently. They are not moved to the top of the post list or displayed separately to the normal post list.\n\nUse `{{#if featured}}{{/if}}` to test if the current post is featured.","excerpt":"`{{post}}`  - The details of your post or page","slug":"post","type":"basic","title":"post"}

post

`{{post}}` - The details of your post or page

Usage: `{{#post}}{{/post}}` or `{{#foreach posts}}{{/foreach}}` ## Description When on a single post template such as [post.hbs](/docs/structure#post-hbs) or [page.hbs](/docs/structure#page-hbs), outputting the details of your posts can be done with a [block expression](/docs/handlebars#block-expressions-scopes-). The block expression `{{#post}}{{/post}}` isn't strictly a 'helper'. You can do this with any object in a template to access the nested attributes e.g. you can also use `{{#author}}{{/author}}` inside of the post block to get to the author's name and other attributes. When inside a post list such as [index.hbs](/docs/structure#index-hbs) or [tag.hbs](/docs/structure#index-hbs) where there is more than one post, it is common to use the [{{#foreach post}}{{/foreach}} helper](doc:foreach) to iterate through the list. When inside a `{{#foreach posts}}{{/foreach}}` or `{{#post}}{{/post}}` block (i.e. when inside the post scope), theme authors have access to all of the properties and helpers detailed on this page. ## Post Attributes The full [list of post attributes](/docs/post-context#post-object-attributes) and more information about outputting posts can be found in the [post context](doc:post-context) documentation. ## Static pages When outputting a static page, you can use the same `{{#post}}{{/post}}` block expression, and all the same helpers you can use for a post. ## Featured posts Featured posts get an extra class so that they can be styled differently. They are not moved to the top of the post list or displayed separately to the normal post list. Use `{{#if featured}}{{/if}}` to test if the current post is featured.