1 Star 0 Fork 4

Halo/halo-theme-anatole

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
archives.ftl 1.83 KB
一键复制 编辑 原始数据 按行查看 历史
Ryan Wang 提交于 2022-05-21 20:22 . refactor: code cleanup
<@layout.extends name="module/layout.ftl">
<@layout.put block="title">归档 - ${blog_title!}</@layout.put>
<@layout.put block="content">
<div class="archive animated fadeInDown">
<ul class="list-with-title">
<#list archives as archive>
<div class="listing-title">${archive.year?c}</div>
<ul class="listing">
<#list archive.posts?sort_by("createTime")?reverse as post>
<div class="listing-item">
<div class="listing-post">
<a href="${post.fullPath!}" title="${post.title!}">${post.title!}</a>
<div class="post-time">
<span class="date">${post.createTime?string("yyyy-MM-dd")}</span>
</div>
</div>
</div>
</#list>
</ul>
</#list>
</ul>
</div>
<#if posts.totalPages gt 1>
<@paginationTag method="archives" page="${posts.number?c}" total="${posts.totalPages?c}" display="3">
<div class="pagination flex justify-between items-center">
<#if pagination.hasPrev>
<a class="btn" role="navigation" href="${pagination.prevPageFullPath!}">上一页</a>
</#if>
<span class="text-sm">${posts.number+1}/${posts.totalPages!}</span>
<#if pagination.hasNext>
<a class="btn" role="navigation" href="${pagination.nextPageFullPath!}">下一页</a>
</#if>
</div>
</@paginationTag>
</#if>
</@layout.put>
</@layout.extends>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
CSS
1
https://gitee.com/halo-dev/halo-theme-anatole.git
[email protected]:halo-dev/halo-theme-anatole.git
halo-dev
halo-theme-anatole
halo-theme-anatole
master

搜索帮助