然后 , 使用#each来遍历 posts:
<div class="posts"> <div class="row justify-content-center"> {{#each posts}} <div class="col-lg-7" style="margin-top: 50px;"> <div class="card"> <img src=https://www.isolves.com/it/cxkf/yy/js/2020-10-19/"{{this.image}}" class="card-img-top" alt="..."> 此文章由 {{post.author}} 发布
{{#if this.comments}} {{#each this.comments}}
{{else}}
{{/if}}
