
                const image = json.image ? json.image[0] : '';
                const title = post.title;
                const author = post.author;
                const created = new Date(post.created).toDateString();
                posts.push(
                    `&lt;div class="list-group-item"&gt;&lt;h4 class="list-group-item-heading"&gt;${title}&lt;/h4&gt;&lt;p&gt;by ${author}&lt;/p&gt;&lt;center&gt;&lt;img src="${image}" class="img-responsive center-block" style="max-width: 450px"/&gt;&lt;/center&g