<%- include('../partials/head', { pageType: 'admin' }) %>
<%- include('../partials/admin-header', { activeAdminTab: 'posts', stats }) %>
All Categories (<%= posts.length %>) <% categories.forEach(cat => { %> <%= cat.name %> (<%= cat.count %>) <% }) %>
<% if (activeCategory) { %> <% } %> <% if (q) { %> × <% } %>

Published Markdown Posts <%= filteredPosts.length %> post<%= filteredPosts.length === 1 ? '' : 's' %>

Single Source of Truth: sample-content/posts/
<% if (filteredPosts.length === 0) { %>

No posts matched your filter.

Reset Filter
<% } else { %>
<% filteredPosts.forEach(post => { const commentInfo = commentStats.get(post.slug) || { total: 0, pending: 0 }; const hasBilingual = post.availableLanguages && post.availableLanguages.length > 1; %> <% }) %>
Post Details Language Category & Tags Published Comments Media / SEO
/<%= post.slug %> ↗ Live
📁 sample-content/posts/<%= post.slug %>/index.md
<% if (hasBilingual) { %> 🌐 [<%= post.availableLanguages.map(l => l.toUpperCase()).join('|') %>]
Default: <%= post.defaultLang ? post.defaultLang.toUpperCase() : 'EN' %>
<% } else { %> <%= (post.lang || 'en').toUpperCase() %> <% } %>
<%= post.category || 'Uncategorized' %>
<% if (post.tags && post.tags.length > 0) { %>
<% post.tags.slice(0, 4).forEach(t => { %> #<%= t %> <% }) %> <% if (post.tags.length > 4) { %> +<%= post.tags.length - 4 %> <% } %>
<% } %>
<%= post.date.toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric' }) %>
<%= post.readingTimeMinutes ? `${post.readingTimeMinutes} min read` : '' %>
💬 <%= commentInfo.total %> <% if (commentInfo.pending > 0) { %> <%= commentInfo.pending %> pending <% } %> <% if (post.cover) { %> ✓ Cover Active <% } else { %> ⚠️ No Cover <% } %>
<% } %>
<%- include('../partials/foot', { pageType: 'admin' }) %>