代码拉取完成,页面将自动刷新
<#include "default.ftl">
<#include "partials/post-card.ftl">
<@default title="分类:${category.name!} | ${blog_title!}" canonical="${category.fullPath!}" body_class="tag-template">
<#-- The tag above means - insert everything in this file into the {body} of the default.hbs template -->
<#-- The big featured header, it uses blog cover image as a BG if available -->
<header class="site-header outer <#if settings.cover?default('${theme_base!}/assets/images/blog-cover.jpg') != ''>" style="background-image: url(${settings.cover?default('${theme_base!}/assets/images/blog-cover.jpg')})<#else>no-cover</#if>">
<div class="inner">
<#include "partials/site-nav.ftl">
<div class="site-header-content">
<h1 class="site-title">分类:${category.name}</h1>
<h2 class="site-description">
<#if category.description?? && category.description!=''>
${category.description}
<#else>
${posts.totalElements!0}篇文章
</#if>
</h2>
</div>
</div>
</header>
<#-- The main content area -->
<main id="site-main" class="site-main outer">
<div class="inner">
<div class="post-feed">
<#list posts.content as post>
<#-- The tag below includes the markup for each post - partials/post-card.hbs -->
<@post_card post></@post_card>
</#list>
</div>
</div>
</main>
</@default>
<@scripts>
<#if posts.totalPages gt 1>
<script>
// maxPages is a global variable that is needed to determine
// if we need to load more pages for the infinitescroll, or if
// we reached the last page already.
var maxPages = parseInt('${posts.totalPages}');
</script>
<script src="${theme_base!}/assets/built/infinitescroll.js"></script>
</#if>
</@scripts>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。