一点点优化
parent
09ebadcdd6
commit
3e0213975e
|
@ -109,7 +109,7 @@
|
||||||
<#if post.summary?? && post.summary!=''>
|
<#if post.summary?? && post.summary!=''>
|
||||||
<div class="level-end">
|
<div class="level-end">
|
||||||
<div class="level-item">
|
<div class="level-item">
|
||||||
<a class="button is-size-7 is-light" href="${context!}/archives/${post.url!}#more">阅读更多</a>
|
<a class="button is-size-7 is-light" target="_blank" href="${context!}/archives/${post.url!}#more">阅读更多</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</#if>
|
</#if>
|
||||||
|
@ -149,27 +149,35 @@
|
||||||
</#if>
|
</#if>
|
||||||
</#if>
|
</#if>
|
||||||
|
|
||||||
<#if !index && nextPost?? && prePost??>
|
<#if !index && (nextPost?? || prePost??)>
|
||||||
<div class="card card-transparent">
|
<div class="card card-transparent">
|
||||||
<div class="level post-navigation is-flex-wrap is-mobile">
|
<div class="level post-navigation is-flex-wrap is-mobile">
|
||||||
<#if prePost??>
|
<div class="level-start">
|
||||||
<div class="level-start">
|
<#if prePost??>
|
||||||
<a class="level level-item has-link-grey article-nav-prev"
|
<a class="level level-item has-link-grey article-nav-prev" href="${context!}/archives/${prePost.url!}">
|
||||||
href="${context!}/archives/${prePost.url}">
|
|
||||||
<i class="level-item fas fa-chevron-left"></i>
|
<i class="level-item fas fa-chevron-left"></i>
|
||||||
<span class="level-item">${prePost.title!}</span>
|
<span class="level-item">${prePost.title!}</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
<#else>
|
||||||
</#if>
|
<a class="level level-item has-link-grey article-nav-prev" href="${context!}/">
|
||||||
<#if nextPost??>
|
<i class="level-item fas fa-chevron-left"></i>
|
||||||
<div class="level-end">
|
<span class="level-item">没有了</span>
|
||||||
<a class="level level-item has-link-grey article-nav-next"
|
</a>
|
||||||
href="${context!}/archives/${nextPost.url}">
|
</#if>
|
||||||
|
</div>
|
||||||
|
<div class="level-end">
|
||||||
|
<#if nextPost??>
|
||||||
|
<a class="level level-item has-link-grey article-nav-next" href="${context!}/archives/${nextPost.url!}">
|
||||||
<span class="level-item">${nextPost.title!}</span>
|
<span class="level-item">${nextPost.title!}</span>
|
||||||
<i class="level-item fas fa-chevron-right"></i>
|
<i class="level-item fas fa-chevron-right"></i>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
<#else>
|
||||||
</#if>
|
<a class="level level-item has-link-grey article-nav-next" href="${context!}/">
|
||||||
|
<span class="level-item">没有了</span>
|
||||||
|
<i class="level-item fas fa-chevron-right"></i>
|
||||||
|
</a>
|
||||||
|
</#if>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</#if>
|
</#if>
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
<span class="blog-slider__code">${post.createTime?string["yyyy-MM-dd EE"]}</span>
|
<span class="blog-slider__code">${post.createTime?string["yyyy-MM-dd EE"]}</span>
|
||||||
<div class="blog-slider__title "><a class="title is-5" href="${context!}/archives/${post.url!}">${post.title!}</a></div>
|
<div class="blog-slider__title "><a class="title is-5" href="${context!}/archives/${post.url!}">${post.title!}</a></div>
|
||||||
<div class="blog-slider__text" content="">${post.summary!}</div>
|
<div class="blog-slider__text" content="">${post.summary!}</div>
|
||||||
<a href="${context!}/archives/${post.url!}" class="blog-slider__button">阅读更多</a>
|
<a href="${context!}/archives/${post.url!}" target="_blank" class="blog-slider__button">阅读更多</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</#if>
|
</#if>
|
||||||
|
|
|
@ -32,17 +32,26 @@
|
||||||
</#if>
|
</#if>
|
||||||
</#if>
|
</#if>
|
||||||
<#if position == 'right'>
|
<#if position == 'right'>
|
||||||
<#if post??>
|
<#if is_sheet??>
|
||||||
<#include "../widget/cate_posts.ftl">
|
|
||||||
<#include "../widget/tag_posts.ftl">
|
|
||||||
<#include "../widget/toc-post.ftl">
|
|
||||||
<#else>
|
|
||||||
<#if settings.sidebar_recentpost!true>
|
<#if settings.sidebar_recentpost!true>
|
||||||
<#include "../widget/recent_posts.ftl">
|
<#include "../widget/recent_posts.ftl">
|
||||||
</#if>
|
</#if>
|
||||||
</#if>
|
<#if settings.sidebar_recentcomment!true>
|
||||||
<#if settings.sidebar_recentcomment!true>
|
<#include "../widget/recent_comments.ftl">
|
||||||
<#include "../widget/recent_comments.ftl">
|
</#if>
|
||||||
|
<#else>
|
||||||
|
<#if post??>
|
||||||
|
<#include "../widget/cate_posts.ftl">
|
||||||
|
<#include "../widget/tag_posts.ftl">
|
||||||
|
<#include "../widget/toc-post.ftl">
|
||||||
|
<#else>
|
||||||
|
<#if settings.sidebar_recentpost!true>
|
||||||
|
<#include "../widget/recent_posts.ftl">
|
||||||
|
</#if>
|
||||||
|
</#if>
|
||||||
|
<#if settings.sidebar_recentcomment!true>
|
||||||
|
<#include "../widget/recent_comments.ftl">
|
||||||
|
</#if>
|
||||||
</#if>
|
</#if>
|
||||||
</#if>
|
</#if>
|
||||||
<#if position == 'left'>
|
<#if position == 'left'>
|
||||||
|
|
|
@ -224,7 +224,7 @@
|
||||||
|
|
||||||
code {
|
code {
|
||||||
color: var(--color);
|
color: var(--color);
|
||||||
background-color: var(--code-bg-color)
|
/*background-color: var(--code-bg-color)*/
|
||||||
}
|
}
|
||||||
|
|
||||||
code[class*="language-"],
|
code[class*="language-"],
|
||||||
|
|
Loading…
Reference in New Issue