forked from halo-dev/halo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
79 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<#ftl strip_whitespace=true> | ||
|
||
<#-- 统计代码 --> | ||
<#-- statistics_code --> | ||
<#macro statistics> | ||
${options.blog_statistics_code!} | ||
</#macro> | ||
|
||
<#-- 页脚信息 --> | ||
<#-- footer info --> | ||
<#macro footer_info> | ||
${options.blog_footer_info!} | ||
</#macro> | ||
|
@@ -14,19 +14,20 @@ | |
${options.blog_custom_head!} | ||
</#macro> | ||
|
||
<#-- Favicon --> | ||
<#macro custom_content_head> | ||
<#if is_post?? || is_sheet??> | ||
${options.blog_custom_content_head!} | ||
</#if> | ||
</#macro> | ||
|
||
<#-- favicon --> | ||
<#macro favicon> | ||
<#if options.blog_favicon?? && options.blog_favicon!=''> | ||
<link rel="shortcut icon" type="images/x-icon" href="${options.blog_favicon!}"> | ||
</#if> | ||
</#macro> | ||
|
||
<#-- 站点验证代码,已废弃 --> | ||
<#macro verification> | ||
|
||
</#macro> | ||
|
||
<#-- 时间格式化 几...前 --> | ||
<#-- time ago --> | ||
<#macro timeline datetime=.now> | ||
<#assign ct = (.now?long-datetime?long)/1000> | ||
<#if ct gte 31104000>${(ct/31104000)?int} 年前 | ||
|
@@ -46,9 +47,9 @@ | |
<meta name="robots" content="none"> | ||
</#if> | ||
<meta name="generator" content="Halo ${version!}"/> | ||
<@custom_head /> | ||
<@verification /> | ||
<@favicon /> | ||
<@custom_head /> | ||
<@custom_content_head /> | ||
</#macro> | ||
|
||
<#-- global footer --> | ||
|
@@ -57,11 +58,11 @@ | |
<@statistics /> | ||
</#macro> | ||
|
||
<#-- post comment module --> | ||
<#macro comment post,type> | ||
<#-- comment module --> | ||
<#macro comment target,type> | ||
<#if !post.disallowComment!false> | ||
<script src="//cdn.jsdelivr.net/npm/[email protected]/dist/vue.min.js"></script> | ||
<script src="${options.comment_internal_plugin_js!'//cdn.jsdelivr.net/gh/halo-dev/halo-comment@latest/dist/halo-comment.min.js'}"></script> | ||
<halo-comment id="${post.id}" type="${type}"/> | ||
<halo-comment id="${target.id}" type="${type}"/> | ||
</#if> | ||
</#macro> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,13 @@ | |
<div class="title"> | ||
<img src="${options.blog_logo!'${static!}/source/images/[email protected]'}" style="width:127px;<#if settings.avatar_circle!false>border-radius:50%</#if>" /> | ||
<h3 title=""> | ||
<a href="${context!}">${options.blog_title!'Anatole'}</a> | ||
<a href="${context!}">${options.blog_title!}</a> | ||
</h3> | ||
<div class="description"> | ||
<#if settings.hitokoto!false> | ||
<p id="yiyan">获取中...</p> | ||
<#else > | ||
<p>${user.description!'A other Halo theme'}</p> | ||
<p>${user.description!}</p> | ||
</#if> | ||
</div> | ||
</div> | ||
|
@@ -24,7 +24,7 @@ | |
<a href="https://github.com/halo-dev/halo" target="_blank">Proudly published with Halo!</a> | ||
</div> | ||
<div class="footer_text"> | ||
<@common.footer_info /> | ||
<@global.footer_info /> | ||
</div> | ||
</a> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.