1 Star 0 Fork 0

Halo / halo-theme-casper

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
sheet_author.ftl 2.39 KB
一键复制 编辑 原始数据 按行查看 历史
Ryan Wang 提交于 2020-03-14 17:35 . feat: require halo 1.3.0.
<#include "default.ftl">
<@default title="${sheet.title!} | ${blog_title!}" canonical="${sheet.fullPath!}" body_class="page-template">
<#-- The tag above means - insert everything in this file into the {body} of the default.hbs template -->
<#-- Everything inside the #author tags pulls data from the author -->
<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">
<img class="author-profile-image" src="${user.avatar!}" alt="${user.nickname!}" />
<h1 class="site-title">${user.nickname!}</h1>
<#if user.description??>
<h2 class="author-bio">${user.description!}</h2>
</#if>
<div class="author-meta">
<#if settings.location??>
<div class="author-location">${settings.location} <span class="bull">&bull;</span></div>
</#if>
<div class="author-stats">
<@postTag method="count">${count}</@postTag> 篇文章 <span class="bull">&bull;</span>
</div>
<a class="social-link social-link-rss" href="${atom_url!}" target="_blank" rel="noopener"><#include "partials/icons/rss.ftl"></a>
</div>
</div>
</div>
</header>
<#-- The main content area -->
<main id="site-main" class="site-main outer">
<div class="inner">
<article class="post-full post page no-image">
<header class="post-full-header">
<h1 class="post-full-title">${post.title!}</h1>
</header>
<section class="post-full-content">
<div class="post-content">
${sheet.formatContent!}
</div>
</section>
<section class="post-full-comments">
<#-- If you want to embed comments, this is a good place to do it! -->
<#include "module/comment.ftl">
<@comment post=sheet type="sheet" />
</section>
</article>
</div>
</main>
</@default>
<@scripts>
<script>
$(function() {
var $postContent = $(".post-full-content");
$postContent.fitVids();
});
</script>
</@scripts>
CSS
1
https://gitee.com/halo-dev/halo-theme-casper.git
git@gitee.com:halo-dev/halo-theme-casper.git
halo-dev
halo-theme-casper
halo-theme-casper
master

搜索帮助