Select blog posts to display on About page. If none are selected, the system will use the 3 latest posts.
<% if (allBlogs && allBlogs.length > 0) { %>
<% allBlogs.forEach(blog => {
const isSelected = data.news?.selectedBlogIds && data.news.selectedBlogIds.some(id => id.toString() === blog._id.toString());
%>
<%= blog.title %>
<%= blog.publishedAt ? new Date(blog.publishedAt).toLocaleDateString('vi-VN') : '' %>
<% }) %>
<% } else { %>
No published blogs found. Please create some blogs first.
Create Blog
<% } %>