When I access a specific post, it shows only its title.
How can I change the code so I can see its body as well?
At the moment, I can see the body only in edit mode.
post_page.html
:
<template name="postPage">
<div class="post-page page">
{{> postItem}}
<ul class="comments">
{{#each comments}}
{{> commentItem}}
{{/each}}
</ul>
{{#if currentUser}}
{{> commentSubmit}}
{{else}}
<p>Please log in to leave a comment.</p>
{{/if}}
</div>
</template>
post_page.js
:
Template.postPage.helpers({
comments: function () {
return Comments.find({postId: this._id});
}
});
The repo https://github.com/tenzan/blog
Deployed at http://askar-blog.meteor.com/