1 Star 0 Fork 0

Halo / halo-theme-story

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
tag.ftl 2.42 KB
一键复制 编辑 原始数据 按行查看 历史
Ryan Wang 提交于 2020-03-14 17:43 . feat: require halo 1.3.0.
<#include "header.ftl">
<@header title="${tag.name} - ${blog_title!}"></@header>
<div class="container-fluid">
<div class="row">
<div class="archive-header">
<span>- Tag · ${tag.name} -</span>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div id="main" role="main">
<ul class="post-list clearfix">
<#if posts.content?size gt 0>
<#list posts.content as post>
<li class="post-item grid-item" itemscope itemtype="http://schema.org/BlogPosting">
<a class="post-link" href="${post.fullPath!}">
<h3 class="post-title"><time class="index-time" datetime="${post.createTime}" itemprop="datePublished">${post.createTime?string('MMM d,yyyy')}</time><br>${post.title!}</h3>
<div class="post-meta">
<#if post.categories?? && post.categories?size gt 0>
${post.categories[0].name}
</#if>
</div>
</a>
</li>
</#list>
<#else >
<br><br>
<h2 class="post-title"><center>(´°̥̥̥̥̥̥̥̥ω°̥̥̥̥̥̥̥̥`) 什么都没有找到唉...</center></h2>
</#if>
</ul>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<#if posts.totalPages gt 1>
<div class="nav-page">
<ol class="page-navigator">
<@paginationTag method="tagPosts" page="${posts.number}" total="${posts.totalPages}" display="3" slug="${tag.slug!}">
<#if pagination.hasPrev>
<li class="prev">
<a href="${pagination.prevPageFullPath!}">&laquo;</a>
</li>
</#if>
<li>
<a href="#">${posts.number+1}</a>
</li>
<#if pagination.hasNext>
<li class="next">
<a href="${pagination.nextPageFullPath!}">&raquo;</a>
</li>
</#if>
</@paginationTag>
</ol>
</div>
</#if>
</div>
</div>
<#include "footer.ftl">
1
https://gitee.com/halo-dev/halo-theme-story.git
git@gitee.com:halo-dev/halo-theme-story.git
halo-dev
halo-theme-story
halo-theme-story
master

搜索帮助