2 Star 21 Fork 5

cory_lin/halo-theme-xue-codeyee

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
tag.ftl 4.94 KB
一键复制 编辑 原始数据 按行查看 历史
xzhuz 提交于 2020-08-08 16:05 . 💄 Style: 优化图标样式
<#include "module/macro.ftl">
<@layout title="${tag.name} | ${options.blog_title!}" keywords="${options.seo_keywords!}" description="${options.seo_description!}">
<main class="mx-auto" id="container">
<header class="bg-cover post-cover">
<#if settings.tag_patternimg?? && settings.tag_patternimg!=''>
<div class="cover-bg">
<img src="${settings.tag_patternimg!}" class="z-auto"
alt="${tag.name}">
</div>
<#else>
<div class="placeholder-bg">
</div>
</#if>
<div class="cover-content flex justify-center">
<!-- 封面内容 -->
<div class="inner flex flex-col justify-center">
<p class="cover-title text-base md:text-4xl lg:text-4xl xl:text-5xl">${tag.name}</p>
</div>
</div>
</header>
<div class="container mx-auto px-4 content-container">
<div class="posts grid lg:grid-cols-3 md:grid-cols-2 sm:grid-cols-2 xs:grid-cols-1 lg:gap-6 md:gap-4 sm:gap-3 mt-4">
<#if posts?? && posts.getTotalElements() gt 0>
<#list posts.content as post>
<div class="post-card mt-4">
<header class="card-header card-img">
<#if post.thumbnail?? && post.thumbnail!=''>
<a href="${post.fullPath!}"
style=" background-image: url(${post.thumbnail!''});"
class="img-cover img-cover-bg">
</a>
<#elseif settings.card_random_cover!false>
<#assign x = "${settings.card_random_cover_img_num?number}" />
<#assign thumbnailIndex ="${post_index % (x?number)}"/>
<a href="${post.fullPath!}" class="img-cover img-cover-bg"
style="background-image: url(${blog_url!}/thumbnail/thumbnail-${thumbnailIndex?number?abs}.${settings.card_random_cover_img_suffix});"
>
</a>
<#else>
<a data-ajax href="${post.fullPath!}" class= "img-cover no-thumb">
<span class="full-image placeholder-bg" role="img" aria-label=""></span>
</a>
</#if>
</header>
<div class="card-body">
<p class="text-center text-xl tracking-wider svg-f text-clamp-1">
<a href="${post.fullPath!}" class="font-medium text-gray-700 post-title font-sans">
${post.title!}
</a>
</p>
<#if settings.card_hover_summary!false>
<p class="post-excerpt text-sm tracking-wider text-clamp-3 font-sans">
${post.summary!}
</p>
</#if>
</div>
<footer class="card-footer svg-f">
<span class="cst-icon icon-calendar lh-25 f-10" style="margin-right: 5px"></span>
<span class="post-time lh-25 mr-auto">
<span class="published"
datetime="${post.createTime?string("yyyy-MM-dd")}">${post.createTime?string("yyyy-MM-dd")}</span>
</span>
<div class="lh-25">
<span class="visitors-count">
<span>${post.visits!}</span> <span class="iconfont icon-Eyesight"> </span>
</span>
<span class="visitors-comment">
<span>${post.commentCount}</span> <span class="iconfont icon-comment"> </span>
</span>
</div>
</footer>
</div>
</#list>
</#if>
</div>
<#-- 分页-->
<nav class="pagination flex flex-row justify-center mt-8" role="navigation" aria-label="pagination">
<@paginationTag method="tagPosts" page="${posts.number}" total="${posts.totalPages}" display="3" slug="${tag.slug!}">
<#include "module/pagination.ftl">
</@paginationTag>
</nav>
</div>
</main>
</@layout>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
CSS
1
https://gitee.com/codeyee/halo-theme-xue-codeyee.git
[email protected]:codeyee/halo-theme-xue-codeyee.git
codeyee
halo-theme-xue-codeyee
halo-theme-xue-codeyee
master

搜索帮助