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:
@@ -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">
|
||||
← 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 →
|
||||
</a>
|
||||
<% } %>
|
||||
|
||||
Reference in New Issue
Block a user