1 Star 0 Fork 1

Halo/halo-theme-next

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
tag.ftl 1.92 KB
一键复制 编辑 原始数据 按行查看 历史
Ryan Wang 提交于 2020-03-14 17:40 +08:00 . feat: require halo 1.3.0.
<#include "layout/_layout.ftl">
<#include "layout/_macro/post-collapse.ftl">
<#include "layout/_macro/sidebar.ftl">
<@html title="标签: ${tag.name} | ${blog_title!}" ogtype="website" url="${tag.fullPath!}"></@html>
<@main>
<div id="content" class="content">
<div class="post-block tag">
<div id="posts" class="posts-collapse">
<div class="collection-title">
<<#if settings.seo!false>h2<#else>h1</#if>>
${tag.name}
<small>标签</small>
</<#if settings.seo!false>h2<#else>h1</#if>>
</div>
<@post_collapase posts=posts.content></@post_collapase>
</div>
</div>
<#if posts.totalPages gt 1>
<nav class="pagination">
<@paginationTag method="tagPosts" page="${posts.number}" total="${posts.totalPages}" display="3" slug="${tag.slug!}">
<#if pagination.hasPrev>
<a class="extend prev" rel="prev" href="${pagination.prevPageFullPath!}">
<i class="fa fa-angle-left" aria-label="Previous page"></i>
</a>
</#if>
<#list pagination.rainbowPages as number>
<#if number.isCurrent>
<span class="page-number current">${number.page!}</span>
<#else>
<a class="page-number" href="${number.fullPath!}">${number.page!}</a>
</#if>
</#list>
<#if pagination.hasNext>
<a class="extend next" rel="next" href="${pagination.nextPageFullPath!}">
<i class="fa fa-angle-right" aria-label="Next page"></i>
</a>
</#if>
</@paginationTag>
</nav>
</#if>
</div>
</@main>
<@sidebar>
<@sidebar_template is_post=false></@sidebar_template>
</@sidebar>
<@footer>
</@footer>
<@button>
</@button>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/halo-dev/halo-theme-next.git
[email protected]:halo-dev/halo-theme-next.git
halo-dev
halo-theme-next
halo-theme-next
master

搜索帮助