extends /layouts/page.pug block pageContent .article-list-container-full - const articles = [] - articles.push({ id: 1, title: '文章标题1', author: '作者1', created_at: '2023-08-01', summary: '这是文章摘要...' }) - articles.push({ id: 2, title: '文章标题2', author: '作者2', created_at: '2023-08-02', summary: '这是另一篇文章摘要...' }) //- 文章列表 if articles && articles.length each article in articles .article-item-full h2.article-title-full a(href=`/articles/${article.id}`) #{article.title} .article-meta-full span 作者:#{article.author} | 发布时间:#{article.created_at} p.article-summary-full #{article.summary} else p.no-articles 暂无文章 //- 分页控件 if totalPages > 1 .pagination-full if page > 1 a.page-btn-full(href=`?page=${page-1}`) 上一页 else span.page-btn-full.disabled 上一页 span.page-info-full 第 #{page} / #{totalPages} 页 if page < totalPages a.page-btn-full(href=`?page=${page+1}`) 下一页 else span.page-btn-full.disabled 下一页 style. .article-list-container-full { width: 100%; max-width: 100%; margin: 40px 0 0 0; background: transparent; border-radius: 0; box-shadow: none; padding: 0; display: flex; flex-direction: column; align-items: center; } .article-item-full { width: 90vw; max-width: 1200px; background: #fff; border-radius: 14px; box-shadow: 0 2px 16px #e0e7ef; margin-bottom: 28px; padding: 28px 36px 18px 36px; border-left: 6px solid #6dd5fa; transition: box-shadow 0.2s, border-color 0.2s; } .article-item-full:hover { box-shadow: 0 4px 32px #cbe7ff; border-left: 6px solid #ff6a88; } .article-title-full { margin: 0 0 8px 0; font-size: 1.6em; } .article-title-full a { color: #2b7cff; text-decoration: none; transition: color 0.2s; } .article-title-full a:hover { color: #ff6a88; } .article-meta-full { color: #888; font-size: 1em; margin-bottom: 8px; } .article-summary-full { color: #444; font-size: 1.13em; } .no-articles { text-align: center; color: #aaa; margin: 40px 0; } .pagination-full { display: flex; justify-content: center; align-items: center; margin: 32px 0 0 0; gap: 18px; } .page-btn-full { padding: 7px 22px; border-radius: 22px; background: linear-gradient(90deg, #6dd5fa, #ff6a88); color: #fff; text-decoration: none; font-weight: bold; transition: background 0.2s; cursor: pointer; font-size: 1.08em; } .page-btn-full.disabled { background: #eee; color: #bbb; cursor: not-allowed; pointer-events: none; } .page-info-full { color: #666; font-size: 1.12em; }