const { posts, total } = await shop.blog.list({ limit: 9 });
posts.forEach(post => {
blogGrid.innerHTML += `
<article>
${post.featured_image ? `<img src="${post.featured_image}" alt="${post.title}" />` : ''}
<h2><a href="/blog/${post.slug}">${post.title}</a></h2>
<p>${post.excerpt ?? ''}</p>
<time>${new Date(post.published_at!).toLocaleDateString()}</time>
</article>
`;
});