feat(migration): complete WordPress migration and UX refinements

- 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
This commit is contained in:
2026-09-16 23:09:09 -07:00
parent 8c0b04db0e
commit f52b3fe9e4
87 changed files with 3417 additions and 190 deletions
+7 -3
View File
@@ -28,10 +28,14 @@
<% }) %>
</div>
<% if (totalPages > 1) { %>
<% if (totalPages > 1) {
const filterBaseUrl = activeFilter
? (activeFilter.type === 'category' ? `/category/${encodeURIComponent(activeFilter.value)}` : `/tag/${encodeURIComponent(activeFilter.value)}`)
: '/blogs';
%>
<nav class="pagination-editorial" aria-label="Blog pagination">
<% if (currentPage > 1) { %>
<a href="/blogs?page=<%= currentPage - 1 %><%= activeFilter ? `&${activeFilter.type}=${encodeURIComponent(activeFilter.value)}` : '' %>" class="editorial-nav-link">
<a href="<%= filterBaseUrl %>?page=<%= currentPage - 1 %>" class="editorial-nav-link">
&larr; Previous Page
</a>
<% } %>
@@ -41,7 +45,7 @@
</span>
<% if (currentPage < totalPages) { %>
<a href="/blogs?page=<%= currentPage + 1 %><%= activeFilter ? `&${activeFilter.type}=${encodeURIComponent(activeFilter.value)}` : '' %>" class="editorial-nav-link">
<a href="<%= filterBaseUrl %>?page=<%= currentPage + 1 %>" class="editorial-nav-link">
Next Page &rarr;
</a>
<% } %>