Ai
1 Star 0 Fork 1

PerfreeBlog/default

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
articleList.html 2.40 KB
一键复制 编辑 原始数据 按行查看 历史
perfree 提交于 2024-10-16 08:34 +08:00 . first commit
#include("/static/themes/default/inc/layout.html")
#@layout()
#define css()
<link rel="stylesheet" href="/static/themes/default/static/css/index.css?v=#(version)">
#include("/static/themes/default/inc/custom_bg.html")
#end
#define content()
<div class="d-wrapper">
<div class="d-banner">
<div class="d-hero-box">
#if(null != category)
<h1 class="d-hero-title wow fadeInUp desc-title" data-wow-duration="0.2s">#(category.name)</h1>
<p class="d-hero-desc wow fadeInUp" data-wow-duration="0.4s">共 #(category.count) 篇文章</p>
#else if(null != tag)
<h1 class="d-hero-title wow fadeInUp desc-title" data-wow-duration="0.2s">#(tag.name)</h1>
<p class="d-hero-desc wow fadeInUp" data-wow-duration="0.4s">共 #(tag.articleCount) 篇文章</p>
#else
<h1 class="d-hero-title wow fadeInUp" data-wow-duration="0.2s">#option('DEFAULT_HERO_TITLE','theme_Default', 'Perfree')</h1>
<p class="d-hero-desc wow fadeInUp" data-wow-duration="0.4s">#option('DEFAULT_HERO_SUB_TITLE','theme_Default', '简简单单的生活,安安静静的写博客')</p>
#end
</div>
</div>
</div>
<section class="d-container">
<section class="d-container-left">
<div class="d-post-list">
#articlePage(pageSize=10)
#for(article: articlePage.data)
#include("/static/themes/default/inc/postItem.html")
#else
<span class="d-no-content">暂无文章</span>
#end
#if(articlePage.pageTotal > 1)
<nav class="m-pager-box wow fadeInUp" style="visibility: visible; animation-name: fadeInUp;">
#if(articlePage.hasPrevious)
<a class="m-pager previous-page-btn" href="#(articlePage.previousUrl)">上一页</a>
#end
<span>#(articlePage.pageNo) / #(articlePage.pageTotal)</span>
#if(articlePage.hasNext)
<a class="m-pager next-page-btn" href="#(articlePage.nextUrl)">下一页</a>
#end
</nav>
#end
#end
</div>
</section>
#include("/static/themes/default/inc/right.html")
</section>
#end
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/PerfreeBlog/default.git
git@gitee.com:PerfreeBlog/default.git
PerfreeBlog
default
default
main

搜索帮助