1 Star 0 Fork 0

ionehe/halo-theme-a

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
post.ftl 2.51 KB
一键复制 编辑 原始数据 按行查看 历史
Ryan Wang 提交于 2020-03-25 17:56 . require 1.3.0
<#include "layout/_include/head.ftl">
<@head title="${post.title!} - ${blog_title!}"></@head>
<#include "layout/_include/container_head.ftl">
<#include "layout/_include/single_column_head.ftl">
<#include "layout/_include/side_nav.ftl">
<#include "layout/_include/extra_nav.ftl">
<@extra_nav false ''/>
<div ref="streamContainer" class="stream-container">
<div class="post-list-container post-list-container-shadow">
<div class="post">
<div <#if post.thumbnail?? && post.thumbnail!=''>class="post-head-wrapper" style="background-image: url('${post.thumbnail!}')"
<#else>class="post-head-wrapper-text-only"</#if>>
<div class="post-title">
${post.title!}
<div class="post-meta">
<time datetime="${post.createTime!}" itemprop="datePublished">
${post.createTime?string('yyyy-MM-dd HH:mm')}
</time>&nbsp;
<#if categories?? && categories?size gt 0>
<#assign categoriesCount = categories?size />
<i class="material-icons" style="">folder</i>
<#list categories as category>
<a href='${category.fullPath!}'>${category.name!}</a>${(categoriesCount != category_index+1)?string(', ','')}
</#list>
</#if>
<#if tags?? && tags?size gt 0>
<#assign tagsCount = tags?size />
<i class="material-icons" style="">label</i>
<#list tags as tag>
<a href='${tag.fullPath!}'>${tag.name!}</a>${(tagsCount != tag_index+1)?string(', ','')}
</#list>
</#if>
</div>
</div>
</div>
<div class="post-body-wrapper">
<div class="post-body" v-pre>
${post.formatContent!}
</div>
</div>
<#include "layout/_include/post_pagination.ftl">
<#include "layout/_include/comment_templates.ftl">
<@comment_templates post,'post' />
</div>
</div>
<#include "layout/_include/single_column_footer.ftl">
</div>
<#include "layout/_include/container_tail.ftl">
<#if !post.disallowComment!false>
<#include "layout/_include/comment_includes.ftl">
</#if>
<#include "layout/_include/tail.ftl">
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ionehe/halo-theme-a.git
git@gitee.com:ionehe/halo-theme-a.git
ionehe
halo-theme-a
halo-theme-a
master

搜索帮助