- Migrate historical posts, localized assets, and 103 comments - Colocate media into posts/<slug>/images/ and remove wp-content - Add native bilingual support for ai-can-change post (English default, /zh variant) - Support clean taxonomy routing (/category/:category and /tag/:tag) - Dynamically populate categories and tags in sitemap.xml - Fix header scroll padding/margin offsets for anchor and reference links - Constrain image and media widths to prevent content overflow - Redesign homepage recent posts to 4 compact editorial cards - Restore valid binary favicon.ico and high-res icon assets - Remove placeholder content and sample test comments
26 lines
1.1 KiB
Plaintext
26 lines
1.1 KiB
Plaintext
<%- include('../partials/head', { pageType: 'home' }) %>
|
|
|
|
<div class="home-wrapper">
|
|
<% if (page && page.contentHtml) { %>
|
|
<div class="home-main-content">
|
|
<%- page.contentHtml %>
|
|
</div>
|
|
<% } %>
|
|
|
|
<% if (recentPosts && recentPosts.length > 0) { %>
|
|
<section class="home-recent-posts"
|
|
style="margin-top: 5rem; padding-top: 3rem; border-top: 1px solid var(--color-border);">
|
|
<div style="display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2.5rem;">
|
|
<h2 style="font-size: 2rem; margin: 0; font-family: var(--font-serif); font-weight: 400;">Recent Posts</h2>
|
|
<a href="/blogs" class="nav-link" style="font-size: 0.95rem; font-weight: 500;">View all blogs →</a>
|
|
</div>
|
|
<div class="home-posts-grid-4">
|
|
<% recentPosts.forEach(post => { %>
|
|
<%- include('../partials/post-card', { post }) %>
|
|
<% }) %>
|
|
</div>
|
|
</section>
|
|
<% } %>
|
|
</div>
|
|
|
|
<%- include('../partials/foot', { pageType: 'home' }) %> |