1 Star 2 Fork 0

xzhuz/halo-theme-xue

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
tag.ftl 1.54 KB
一键复制 编辑 原始数据 按行查看 历史
xzhuz 提交于 2022-04-10 00:43 . ✨ Feat: 二级目录
<#include "module/macro.ftl">
<@layout title="标签:${tag.name} | ${options.blog_title!}">
<main class="mx-auto" id="container">
<header class="bg-gray-900 table fade-down relative w-full opacity-95 z-10 h-1/2">
<#if tag.thumbnail?? && tag.thumbnail!=''>
<div class="cover-bg bottom-0 left-0 right-0 top-0 opacity-30 absolute">
<img src="${tag.thumbnail!}"
class="h-full w-full left-0 object-cover absolute top-0 no-zoom"
alt="${tag.name}">
</div>
<#else>
<div class="placeholder-bg">
</div>
</#if>
<div class="h-96 align-middle table-cell relative w-full index flex justify-center">
<h2 class="text-white mb-5 mt-4 leading-loose relative w-full text-4xl text-center">
${tag.name} <sup>${posts.totalElements}</sup>
</h2>
</div>
</header>
<div class="mx-auto fade-up pt-4 <#if settings.posts_style!true>px-5 md:px-0 max-w-xl sm:max-w-2xl md:max-w-3xl lg:max-w-5xl <#else> px-5 max-w-4xl</#if>">
<#if settings.posts_style!true>
<#include "module/widget/post_cards.ftl">
<#else>
<#include "module/widget/post_list.ftl">
</#if>
<#-- 分页-->
<nav class="pagination flex flex-row justify-center my-8" role="navigation" aria-label="pagination">
<@paginationTag method="tagPosts" page="${posts.number}" total="${posts.totalPages}" display="3" slug="${tag.slug!}">
<#include "module/widget/pagination.ftl">
</@paginationTag>
</nav>
</div>
</main>
</@layout>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/xzhuz/halo-theme-xue.git
git@gitee.com:xzhuz/halo-theme-xue.git
xzhuz
halo-theme-xue
halo-theme-xue
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385