1 Star 0 Fork 28

蒙志明/halo-theme-joe2.0

forked from qinhua/halo-theme-joe2.0 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
tags.ftl 3.22 KB
一键复制 编辑 原始数据 按行查看 历史
qinhua 提交于 2022-02-04 22:37 . 优化导航条滚动性能
<!DOCTYPE html>
<html lang="zh-CN">
<#import "template/common/header.ftl" as headInfo>
<@headInfo.head title="所有标签" type="tags"/>
<#import "template/macro/tail.ftl" as tailInfo>
<body>
<div id="Joe">
<#include "template/common/navbar.ftl">
<div class="joe_container joe_main_container page-tags${settings.enable_show_in_up?then(' animated showInUp','')}${(settings.aside_position=='left')?then(' revert','')}">
<div class="joe_main">
<div class="joe_index">
<div class="joe_index__title">
<ul class="joe_index__title-title pl-15">
<li class="item active">${settings.tags_title!}<@tagTag method="count"><span class="totals">${count!0}</span></@tagTag></li>
</ul>
</div>
<div class="joe_index__hot">
<#assign random_img_ok=settings.enable_random_img_api==true && settings.random_img_api?trim!=''>
<ul class="joe_index__hot-list${(settings.tags_type!='card')?then('-tag','')} animated fadeIn" style="padding-bottom: 10px;">
<@tagTag method="list">
<#list tags?sort_by(settings.tags_sort)?reverse as tag>
<#if settings.tags_type=='card'>
<li class="item">
<a class="link" href="${tag.fullPath!}" title="${tag.name!}">
<figure class="inner">
<#if settings.enable_tags_post_num!true>
<#include "template/macro/post_num.ftl">
<@post_num type="tag" id="${tag.id?c}" suffix="篇" />
</#if>
<#assign thumbnail=(tag.thumbnail?? && tag.thumbnail!='')?then(tag.thumbnail,(random_img_ok==true)?then(settings.random_img_api + ((settings.random_img_api?index_of('?')!=-1)?then('&','?')) + '_r=' + tag.id,'https://picsum.photos/id/1${tag_index}/350/200')) >
<img width="100%" height="120" class="image lazyload" data-src="${thumbnail}" src="${LAZY_IMG}" onerror="this.src='${settings.fallback_thumbnail!}'" alt="${tag.name!}">
<figcaption class="title">${tag.name!}</figcaption>
</figure>
</a>
</li>
<#else>
<li class="item">
<a class="link" href="${tag.fullPath!}" title="${tag.name!}">
<span title="${tag.name!}">${tag.name!}</span>
<#if settings.enable_tags_post_num!true>
<#include "template/macro/post_num.ftl">
<@post_num type="tag" id="${tag.id?c}" />
</#if>
</a>
</li>
</#if>
</#list>
</@tagTag>
</ul>
</div>
</div>
</div>
<#if settings.enable_tags_aside!true>
<#include "template/common/aside.ftl">
</#if>
</div>
<#include "template/common/actions.ftl">
<#include "template/common/footer.ftl">
</div>
<@tailInfo.tail type="tags"/>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/meng-zhiming/halo-theme-joe2.0.git
git@gitee.com:meng-zhiming/halo-theme-joe2.0.git
meng-zhiming
halo-theme-joe2.0
halo-theme-joe2.0
master

搜索帮助