1 Star 0 Fork 0

Halo / halo-theme-hshan

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.ftl 2.47 KB
一键复制 编辑 原始数据 按行查看 历史
Ryan Wang 提交于 2022-05-28 18:57 . refactor: template structure
<@layout.extends name="module/macro.ftl">
<@layout.put block="title">${blog_title!}</@layout.put>
<@layout.put block="content">
<div id="page" class="site">
<main class="site-main" id="main">
<div class="site-content home-content">
<!-- 封面 -->
<header class="bg-cover hero">
<#if settings.home_cover?? && settings.home_cover!=''>
<div class="cover-bg">
<img src="${settings.home_cover!}" alt="">
</div>
<#else>
<div class="default-cover-bg">
</div>
</#if>
<div class="cover-content">
<!-- 封面内容 -->
<div class="inner">
<h2 class="hero-title">${settings.home_title!options.blog_title!}</h2>
<p class="hero-text" id="slogan">${settings.home_description!}</p>
<#if settings.enabled_index_cover_height!true>
<a href="#postContainer" class="arrow-down" data-scroll><span
class="screen-reader-text">Scroll Down</span></a>
</#if>
</div>
</div>
</header>
<div id="postContainer">
<!-- post-list -->
<#if (settings.post_list_style!'standard') == 'standard'>
<#include "module/post-list-style/standard.ftl">
<#elseif settings.post_list_style == 'simple'>
<#include "module/post-list-style/simple.ftl">
<#else>
<#include "module/post-list-style/random-card.ftl">
</#if>
</div>
<#if posts.totalPages gt 1>
<@paginationTag method="index" page="${posts.number}" total="${posts.totalPages}" display="3">
<#include "module/pagination.ftl">
</@paginationTag>
</#if>
</div>
</main>
</div>
</@layout.put>
</@layout.extends>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/halo-dev/halo-theme-hshan.git
git@gitee.com:halo-dev/halo-theme-hshan.git
halo-dev
halo-theme-hshan
halo-theme-hshan
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891