2 Star 21 Fork 5

cory_lin/halo-theme-xue-codeyee

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
photos.ftl 2.69 KB
一键复制 编辑 原始数据 按行查看 历史
<#include "module/macro.ftl">
<@layout title="${settings.photos_title!'相册'} | ${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.photos_patternimg?? && settings.photos_patternimg!=''>
<div class="cover-bg">
<img src="${settings.photos_patternimg!}" class="z-auto"
alt="${settings.photos_title!'相册'}">
</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">${settings.photos_title!'相册'}</p>
</div>
</div>
</header>
<div class="container mx-auto px-4 mt-16 tracking-wider md:leading-relaxed sm:leading-normal cn-pd photos-page content-container">
<div class="photos grid lg:grid-cols-4 md:grid-cols-3 sm:grid-cols-2 xs:grid-cols-1 lg:gap-6 md:gap-4 sm:gap-3 mt-4"
id="galleryCards">
<@photoTag method="listTeams">
<#list teams as item>
<div class="gallery-cards" itemIndex="${item_index}">
<ul class="cards" id="cards_${item_index}">
<#list item.photos as photo>
<li class="card card-${photo_index + 1}">
<a class="gallery-item jg-entry entry-visible" href="javascript:void(0)">
<img src="${photo.url!}" data-src="${photo.url!}" alt="${photo.name!}"/>
<div class="content">
<#if item.team?? && item.team!=''>
<h1 class="gallery-card-title">${item.team}</h1>
<#else>
<h1 class="gallery-card-title">默认相册</h1>
</#if>
</div>
</a>
</li>
</#list>
</ul>
</div>
</#list>
</@photoTag>
</div>
</div>
</main>
</@layout>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
CSS
1
https://gitee.com/codeyee/halo-theme-xue-codeyee.git
git@gitee.com:codeyee/halo-theme-xue-codeyee.git
codeyee
halo-theme-xue-codeyee
halo-theme-xue-codeyee
master

搜索帮助

Cb406eda 1850385 E526c682 1850385