mirror of https://github.com/halo-dev/halo
Update anatole theme.
parent
b983b9f11d
commit
0a3caf5146
|
@ -14,7 +14,7 @@
|
|||
<#list archive.posts?sort_by("createTime")?reverse as post>
|
||||
<div class="listing-item">
|
||||
<div class="listing-post">
|
||||
<a href="${options.blog_url!}/archives/${post.url!}" title="${post.title!}">${post.title!}</a>
|
||||
<a href="${ctx!}/archives/${post.url!}" title="${post.title!}">${post.title!}</a>
|
||||
<div class="post-time">
|
||||
<span class="date">${post.createTime?string("yyyy-MM-dd")}</span>
|
||||
</div>
|
||||
|
|
|
@ -12,17 +12,17 @@
|
|||
<#if posts.hasPrevious()>
|
||||
<#if posts.number == 1>
|
||||
<li class="pre pagbuttons">
|
||||
<a class="btn" role="navigation" href="${options.blog_url!}/">上一页</a>
|
||||
<a class="btn" role="navigation" href="${ctx!}/">上一页</a>
|
||||
</li>
|
||||
<#else >
|
||||
<li class="pre pagbuttons">
|
||||
<a class="btn" role="navigation" href="${options.blog_url!}/page/${posts.number}">上一页</a>
|
||||
<a class="btn" role="navigation" href="${ctx!}/page/${posts.number}">上一页</a>
|
||||
</li>
|
||||
</#if>
|
||||
</#if>
|
||||
<#if posts.hasNext()>
|
||||
<li class="next pagbuttons">
|
||||
<a class="btn" role="navigation" href="${options.blog_url!}/page/${posts.number+2}">下一页</a>
|
||||
<a class="btn" role="navigation" href="${ctx!}/page/${posts.number+2}">下一页</a>
|
||||
</li>
|
||||
</#if>
|
||||
</ul>
|
||||
|
|
|
@ -12,17 +12,17 @@
|
|||
<#if posts.hasPrevious()>
|
||||
<#if posts.number == 1>
|
||||
<li class="pre pagbuttons">
|
||||
<a class="btn" role="navigation" href="${options.blog_url!}/">上一页</a>
|
||||
<a class="btn" role="navigation" href="${ctx!}/">上一页</a>
|
||||
</li>
|
||||
<#else >
|
||||
<li class="pre pagbuttons">
|
||||
<a class="btn" role="navigation" href="${options.blog_url!}/page/${posts.number}">上一页</a>
|
||||
<a class="btn" role="navigation" href="${ctx!}/page/${posts.number}">上一页</a>
|
||||
</li>
|
||||
</#if>
|
||||
</#if>
|
||||
<#if posts.hasNext()>
|
||||
<li class="next pagbuttons">
|
||||
<a class="btn" role="navigation" href="${options.blog_url!}/page/${posts.number+2}">下一页</a>
|
||||
<a class="btn" role="navigation" href="${ctx!}/page/${posts.number+2}">下一页</a>
|
||||
</li>
|
||||
</#if>
|
||||
</ul>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<#macro comment post,type>
|
||||
<#if !post.disallowComment!false>
|
||||
<script src="//cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.min.js"></script>
|
||||
<script src="/static/js/halo-comment.min.js"></script>
|
||||
<script src="//cdn.jsdelivr.net/gh/halo-dev/halo-comment@latest/dist/halo-comment.min.js"></script>
|
||||
<halo-comment id="${post.id}" type="${type}"/>
|
||||
</#if>
|
||||
</#macro>
|
|
@ -2,7 +2,7 @@
|
|||
<div class="post animated fadeInDown">
|
||||
<div class="post-title">
|
||||
<h3>
|
||||
<a href="${options.blog_url!}/archives/${post.url}">${post.title}</a>
|
||||
<a href="${ctx!}/archives/${post.url}">${post.title}</a>
|
||||
</h3>
|
||||
</div>
|
||||
<div class="post-content">
|
||||
|
@ -19,11 +19,11 @@
|
|||
<i class="fa fa-sun-o"></i>
|
||||
<span class="date">${post.createTime?string("yyyy-MM-dd")}</span>
|
||||
<i class="fa fa-comment-o"></i>
|
||||
<a href="${options.blog_url!}/archives/${post.url}#comment_widget">Comments</a>
|
||||
<a href="${ctx!}/archives/${post.url}#comment_widget">Comments</a>
|
||||
<#if post.tags?size gt 0>
|
||||
<i class="fa fa-tag"></i>
|
||||
<#list post.tags as tag>
|
||||
<a href="${options.blog_url!}/tags/${tag.slugName}" class="tag"> ${tag.name}</a>
|
||||
<a href="${ctx!}/tags/${tag.slugName}" class="tag"> ${tag.name}</a>
|
||||
</#list>
|
||||
</#if>
|
||||
</div>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<div class="title">
|
||||
<img src="${options.blog_logo!'/${theme.folderName}/source/images/logo@2x.png'}" style="width:127px;<#if settings.avatar_circle!false>border-radius:50%</#if>" />
|
||||
<h3 title="">
|
||||
<a href="${options.blog_url!}">${options.blog_title!'Anatole'}</a>
|
||||
<a href="${ctx!}">${options.blog_title!'Anatole'}</a>
|
||||
</h3>
|
||||
<div class="description">
|
||||
<#if settings.hitokoto!false>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<#if settings.rss!true>
|
||||
<li>
|
||||
<a target="_blank" href="${options.blog_url!}/atom.xml">
|
||||
<a target="_blank" href="${ctx!}/atom.xml">
|
||||
<i class="fa fa-rss"></i>
|
||||
</a>
|
||||
</li>
|
||||
|
|
|
@ -52,11 +52,11 @@
|
|||
<i class="fa fa-sun-o"></i>
|
||||
<span class="date">${post.createTime?string("yyyy-MM-dd")}</span>
|
||||
<i class="fa fa-comment-o"></i>
|
||||
<a href="${options.blog_url!}/archives/${post.url}#comment_widget">Comments</a>
|
||||
<a href="${ctx!}/archives/${post.url}#comment_widget">Comments</a>
|
||||
<#if tags?size gt 0>
|
||||
<i class="fa fa-tag"></i>
|
||||
<#list tags as tag>
|
||||
<a href="${options.blog_url!}/tags/${tag.slugName}" class="tag"> ${tag.name}</a>
|
||||
<a href="${ctx!}/tags/${tag.slugName}" class="tag"> ${tag.name}</a>
|
||||
</#list>
|
||||
</#if>
|
||||
</div>
|
||||
|
@ -73,7 +73,7 @@
|
|||
class="fa fa-weibo"></a>
|
||||
</div>
|
||||
<div class="twitter">
|
||||
<a href="http://twitter.com/home?status=${options.blog_url!}/archives/${post.url} ,${options.blog_title!},${post.title},;"
|
||||
<a href="http://twitter.com/home?status=${ctx!}/archives/${post.url} ,${options.blog_title!},${post.title},;"
|
||||
class="fa fa-twitter"></a>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -81,12 +81,12 @@
|
|||
<ul class="clearfix">
|
||||
<#if nextPost??>
|
||||
<li class="next pagbuttons">
|
||||
<a class="btn" role="navigation" href="${options.blog_url!}/archives/${nextPost.url}" title="${nextPost.title}">下一篇</a>
|
||||
<a class="btn" role="navigation" href="${ctx!}/archives/${nextPost.url}" title="${nextPost.title}">下一篇</a>
|
||||
</li>
|
||||
</#if>
|
||||
<#if prePost??>
|
||||
<li class="pre pagbuttons">
|
||||
<a class="btn" role="navigation" href="${options.blog_url!}/archives/${prePost.url}" title="${prePost.title}">上一篇</a>
|
||||
<a class="btn" role="navigation" href="${ctx!}/archives/${prePost.url}" title="${prePost.title}">上一篇</a>
|
||||
</li>
|
||||
</#if>
|
||||
</ul>
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
<i class="fa fa-sun-o"></i>
|
||||
<span class="date">${post.createTime?string("yyyy-MM-dd")}</span>
|
||||
<i class="fa fa-comment-o"></i>
|
||||
<a href="${options.blog_url!}/archives/${post.url!}#comment_widget">Comments</a>
|
||||
<a href="${ctx!}/archives/${post.url!}#comment_widget">Comments</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -67,7 +67,7 @@
|
|||
class="fa fa-weibo"></a>
|
||||
</div>
|
||||
<div class="twitter">
|
||||
<a href="http://twitter.com/home?status=${options.blog_url!}/archives/${post.url!} ,${options.blog_title!},${post.title!},;"
|
||||
<a href="http://twitter.com/home?status=${ctx!}/archives/${post.url!} ,${options.blog_title!},${post.title!},;"
|
||||
class="fa fa-twitter"></a>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -12,17 +12,17 @@
|
|||
<#if posts.hasPrevious()>
|
||||
<#if posts.number == 1>
|
||||
<li class="pre pagbuttons">
|
||||
<a class="btn" role="navigation" href="${options.blog_url!}/">上一页</a>
|
||||
<a class="btn" role="navigation" href="${ctx!}/">上一页</a>
|
||||
</li>
|
||||
<#else >
|
||||
<li class="pre pagbuttons">
|
||||
<a class="btn" role="navigation" href="${options.blog_url!}/page/${posts.number}">上一页</a>
|
||||
<a class="btn" role="navigation" href="${ctx!}/page/${posts.number}">上一页</a>
|
||||
</li>
|
||||
</#if>
|
||||
</#if>
|
||||
<#if posts.hasNext()>
|
||||
<li class="next pagbuttons">
|
||||
<a class="btn" role="navigation" href="${options.blog_url!}/page/${posts.number+2}">下一页</a>
|
||||
<a class="btn" role="navigation" href="${ctx!}/page/${posts.number+2}">下一页</a>
|
||||
</li>
|
||||
</#if>
|
||||
</ul>
|
||||
|
|
Loading…
Reference in New Issue