parent
55ff980c13
commit
9ed73a84a9
@ -1,11 +1,11 @@
|
||||
<#include "header.ftl" />
|
||||
<@head title="400-${blog_title!}"/>
|
||||
<@head title="400-${blog_title!}" />
|
||||
<main>
|
||||
<div class="wrap">
|
||||
<div class="error-page">
|
||||
<h1>400</h1>
|
||||
<p>嘤嘤嘤,找不到页面啦</p>
|
||||
<img src="${theme_base!}/source/images/404.png"/>
|
||||
<img src="${theme_base!}/source/images/404.png" />
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<#include "header.ftl" />
|
||||
<@head title="404 - ${blog_title!}"/>
|
||||
<@head title="404 - ${blog_title!}" />
|
||||
<main>
|
||||
<div class="wrap">
|
||||
<div class="error-page">
|
||||
<h1>404</h1>
|
||||
<p>嘤嘤嘤,找不到页面啦</p>
|
||||
<img src="${theme_base!}/source/images/404.png"/>
|
||||
<img src="${theme_base!}/source/images/404.png" />
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
@ -1,10 +1,10 @@
|
||||
<#include "header.ftl">
|
||||
<@head title="${blog_title!}" />
|
||||
<#include "module/module_pageNav.ftl">
|
||||
<main>
|
||||
<div class="wrap min">
|
||||
<#include "module/module_post.ftl">
|
||||
<@pageNav method="index" />
|
||||
</div>
|
||||
<main>
|
||||
<@head title="${blog_title!}" />
|
||||
<#include "module/module_pageNav.ftl">
|
||||
<main>
|
||||
<div class="wrap min">
|
||||
<#include "module/module_post.ftl">
|
||||
<@pageNav method="index" />
|
||||
</div>
|
||||
<main>
|
||||
<#include "footer.ftl">
|
@ -1,7 +1,7 @@
|
||||
<#macro comment target,type>
|
||||
<#if !post.disallowComment!false>
|
||||
<script src="//cdn.jsdelivr.net/npm/vue@2.6.10/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?c}" type="${type}"/>
|
||||
<script src="//cdn.jsdelivr.net/npm/vue@2.6.10/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?c}" type="${type}" />
|
||||
</#if>
|
||||
</#macro>
|
@ -0,0 +1,103 @@
|
||||
<#--判断主页显示社交链接-->
|
||||
<#if is_index??>
|
||||
<section class="home-title">
|
||||
<h1>${blog_title!}</h1>
|
||||
<span>${user.description!}</span>
|
||||
<div class="home-social">
|
||||
<#--微信-->
|
||||
<#if settings.wechat?? && settings.wechat !=''>
|
||||
<a rel="nofollow" title="微信" target="_blank" href="javascript:void(0)" onMouseOut="hideImg()" onmouseover="showImg()">
|
||||
<i class="fa fa-weixin"></i>
|
||||
<div id="wxImg" style="display:none;height:50px;back-ground:#f00;position:absolute;">
|
||||
<img src="${settings.wechat!}">
|
||||
</div>
|
||||
</a>
|
||||
</#if>
|
||||
<#--新浪微博-->
|
||||
<#if settings.sina?? && settings.sina !=''>
|
||||
<a rel="nofollow" title="新浪微博" href="${settings.sina!}" target="_blank">
|
||||
<i class="fa fa-weibo"></i>
|
||||
</a>
|
||||
</#if>
|
||||
<#--QQ-->
|
||||
<#if settings.qq?? && settings.qq !=''>
|
||||
<a rel="nofollow" title="QQ" href="${settings.qq!}" target="_blank">
|
||||
<i class="fa fa-qq"></i>
|
||||
</a>
|
||||
</#if>
|
||||
<#--Github-->
|
||||
<#if settings.github?? && settings.github !=''>
|
||||
<a rel="nofollow" title="Github" href="${settings.github!}" target="_blank">
|
||||
<i class="fa fa-github"></i>
|
||||
</a>
|
||||
</#if>
|
||||
<#--BiliBili-->
|
||||
<#if settings.bili?? && settings.bili !=''>
|
||||
<a rel="nofollow" title="BiliBili" href="${settings.bili!}" target="_blank">
|
||||
<i class="fa fa-bilibili"></i>
|
||||
</a>
|
||||
</#if>
|
||||
<#--网易云音乐-->
|
||||
<#if settings.wangyiyun?? && settings.wangyiyun !=''>
|
||||
<a rel="nofollow" title="网易云音乐" href="${settings.wangyiyun!}" target="_blank">
|
||||
<i class="fa fa-music"></i>
|
||||
</a>
|
||||
</#if>
|
||||
<#--Twitter-->
|
||||
<#if settings.twitter?? && settings.twitter !=''>
|
||||
${settings.home_social!}
|
||||
<a rel="nofollow" title="Twitter" href="${settings.twitter!}" target="_blank">
|
||||
<i class="fa fa-twitter"></i>
|
||||
</a>
|
||||
</#if>
|
||||
<#--Facebook-->
|
||||
<#if settings.facebook?? && settings.facebook !=''>
|
||||
<a rel="nofollow" title="Facebook" href="${settings.Facebook!}" target="_blank">
|
||||
<i class="fa fa-facebook"></i>
|
||||
</a>
|
||||
</#if>
|
||||
<#--简书-->
|
||||
<#-- <#if settings.jianshu?? && settings.jianshu !=''>
|
||||
${settings.home_social!}
|
||||
<a rel="nofollow" title="微信" href="http://weibo.com/234891753" target="_blank">
|
||||
<i class="fa fa-weibo"></i>
|
||||
</a>
|
||||
</#if>-->
|
||||
<#--CSDN-->
|
||||
<#--<#if settings.csdn?? && settings.csdn !=''>
|
||||
${settings.home_social!}
|
||||
<a rel="nofollow" title="微信" href="http://weibo.com/234891753" target="_blank">
|
||||
<i class="fa fa-weibo"></i>
|
||||
</a>
|
||||
</#if>-->
|
||||
<#--知乎-->
|
||||
<#if settings.zhihu?? && settings.zhihu !=''>
|
||||
<a rel="nofollow" title="知乎" href="${settings.zhihu!}" target="_blank">
|
||||
<i class="fa fa-zhihu"></i>
|
||||
</a>
|
||||
</#if>
|
||||
<#--Telegram-->
|
||||
<#if settings.telegram?? && settings.telegram !=''>
|
||||
<a rel="nofollow" title="Telegram" href="${settings.telegram!}" target="_blank">
|
||||
<i class="fa fa-telegram"></i>
|
||||
</a>
|
||||
</#if>
|
||||
<#--邮箱-->
|
||||
<#if settings.email?? && settings.email !=''>
|
||||
<a rel="nofollow" title="邮箱" href="${settings.email!}" target="_blank">
|
||||
<i class="fa fa-envelope" aria-hidden="true"></i>
|
||||
</a>
|
||||
</#if>
|
||||
<#--Stack Overflow-->
|
||||
<#if settings.stackoverflow?? && settings.stackoverflow !=''>
|
||||
<a rel="nofollow" title="Stack Overflow" href="${settings.stackoverflow!}" target="_blank">
|
||||
<i class="fa fa-stack-overflow"></i>
|
||||
</a>
|
||||
</#if>
|
||||
<#--自定义-->
|
||||
<#if settings.customize_homeSocial?? && settings.customize_homeSocial != ''>
|
||||
${settings.customize_homeSocial!}
|
||||
</#if>
|
||||
</div>
|
||||
</section>
|
||||
</#if>
|
@ -0,0 +1,12 @@
|
||||
<script type='text/javascript' src="${theme_base!}/source/js/kico.js"></script>
|
||||
<script type='text/javascript' src="${theme_base!}/source/js/single.js"></script>
|
||||
<#if is_index??>
|
||||
<script type='text/javascript' src="${theme_base!}/source/js/july.js"></script>
|
||||
</#if>
|
||||
<script type='text/javascript' src="${theme_base!}/source/plugins/prism/katex.min.js"></script>
|
||||
<script type='text/javascript' src="${theme_base!}/source/plugins/prism/mhchemParser.js"></script>
|
||||
<#if is_post??|| is_journals??>
|
||||
<script type='text/javascript' src="${theme_base!}/source/plugins/prism/prism.js"></script>
|
||||
</#if>
|
||||
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
|
||||
<script>var single = new Paul_Single({copyright: <#if settings.copy_notice!true>true<#else>false</#if>, night: <#if settings.night_mode=='1'>true<#else>false</#if>});</script>
|
@ -1,24 +1,26 @@
|
||||
<h1>友情链接</h1>
|
||||
<article>
|
||||
<div class="links">
|
||||
<@linkTag method="listTeams">
|
||||
<#list teams as item>
|
||||
<h3 class="link-title">
|
||||
<span class="fake-title">${((item.team!'')?length>0)?string((item.team!''), '小伙伴们')}</span>
|
||||
</h3>
|
||||
<ul class="link-items fontSmooth">
|
||||
<#list item.links?sort_by('priority')?reverse as link>
|
||||
<li class="link-item">
|
||||
<a class="link-item-inner effect-apollo" href="${link.url!}" title="${link.name!}" target="_blank">
|
||||
<img class="lazyload" data-src="${theme_base!}/source/images/svg/loader/trans.ajax-spinner-preloader.svg" src="${link.logo!}" onerror="imgError(this)">
|
||||
<span class="sitename">${link.name!}</span>
|
||||
<div class="linkdes">${link.description!}</div>
|
||||
</a>
|
||||
</li>
|
||||
</#list>
|
||||
</ul>
|
||||
</#list>
|
||||
</@linkTag>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<article>
|
||||
<div class="links">
|
||||
<@linkTag method="listTeams">
|
||||
<#list teams as item>
|
||||
<h3 class="link-title">
|
||||
<span class="fake-title">${((item.team!'')?length>0)?string((item.team!''), '小伙伴们')}</span>
|
||||
</h3>
|
||||
<ul class="link-items fontSmooth">
|
||||
<#list item.links?sort_by('priority')?reverse as link>
|
||||
<li class="link-item">
|
||||
<a class="link-item-inner effect-apollo" href="${link.url!}" title="${link.name!}"
|
||||
target="_blank">
|
||||
<img class="lazyload"
|
||||
data-src="${theme_base!}/source/images/svg/loader/trans.ajax-spinner-preloader.svg"
|
||||
src="${link.logo!}" onerror="imgError(this)">
|
||||
<span class="sitename">${link.name!}</span>
|
||||
<div class="linkdes">${link.description!}</div>
|
||||
</a>
|
||||
</li>
|
||||
</#list>
|
||||
</ul>
|
||||
</#list>
|
||||
</@linkTag>
|
||||
</div>
|
||||
</article>
|
@ -1,31 +1,31 @@
|
||||
<@menuTag method="tree">
|
||||
<#list menus?sort_by('priority') as menu>
|
||||
<#if menu.children?? && menu.children?size gt 0>
|
||||
<div class="has-child">
|
||||
</#if >
|
||||
<a <#if menu.url?? && menu.url?trim?length gt 0> href="${menu.url!}" target="${menu.target!}" </#if>>
|
||||
<span class="faa-parent animated-hover">
|
||||
<#if menu.icon?? && menu.icon?trim?length gt 0>
|
||||
<i class="${menu.icon}" aria-hidden="true"></i>
|
||||
</#if>${menu.name}
|
||||
</span>
|
||||
</a>
|
||||
<#if menu.children?? && menu.children?size gt 0>
|
||||
<div class="sub-menu">
|
||||
<#list menu.children?sort_by('priority') as child>
|
||||
<a href="${child.url!}" target="${child.target!}">
|
||||
<span class="faa-parent animated-hover">
|
||||
<#if child.icon?? && child.icon?trim?length gt 1>
|
||||
<i class="${child.icon}" aria-hidden="true"></i>
|
||||
</#if>${child.name}
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</#list>
|
||||
</div >
|
||||
</#if>
|
||||
<#if menu.children?? && menu.children?size gt 0>
|
||||
</div >
|
||||
</#if >
|
||||
</#list>
|
||||
<#list menus?sort_by('priority') as menu>
|
||||
<#if menu.children?? && menu.children?size gt 0>
|
||||
<div class="has-child">
|
||||
</#if>
|
||||
<a <#if menu.url?? && menu.url?trim?length gt 0> href="${menu.url!}" target="${menu.target!}" </#if>>
|
||||
<span class="faa-parent animated-hover">
|
||||
<#if menu.icon?? && menu.icon?trim?length gt 0>
|
||||
<i class="${menu.icon}" aria-hidden="true"></i>
|
||||
</#if>${menu.name}
|
||||
</span>
|
||||
</a>
|
||||
<#if menu.children?? && menu.children?size gt 0>
|
||||
<div class="sub-menu">
|
||||
<#list menu.children?sort_by('priority') as child>
|
||||
<a href="${child.url!}" target="${child.target!}">
|
||||
<span class="faa-parent animated-hover">
|
||||
<#if child.icon?? && child.icon?trim?length gt 1>
|
||||
<i class="${child.icon}" aria-hidden="true"></i>
|
||||
</#if>${child.name}
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</#list>
|
||||
</div>
|
||||
</#if>
|
||||
<#if menu.children?? && menu.children?size gt 0>
|
||||
</div>
|
||||
</#if>
|
||||
</#list>
|
||||
</@menuTag>
|
@ -1,27 +1,28 @@
|
||||
<#macro pageNav method>
|
||||
<#macro pageNav method keyword="">
|
||||
<section class="page-navigator">
|
||||
<@paginationTag method="${method}" slug="${slug!}" page="${posts.number}" keyword="${keyword}" total="${posts.totalPages}" display="3">
|
||||
<#if pagination.hasPrev>
|
||||
<span class="prev">
|
||||
<a href="${pagination.prevPageFullPath!}" title="上一页">«</a>
|
||||
</span>
|
||||
</#if>
|
||||
<#list pagination.rainbowPages as number>
|
||||
<#if number.isCurrent>
|
||||
<span class="current">
|
||||
<a href="${number.fullPath!}">${number.page!}</a>
|
||||
<@paginationTag method="${method}" slug="${slug!}" page="${posts.number}" total="${posts.totalPages}"
|
||||
keyword="${keyword}" display="3">
|
||||
<#if pagination.hasPrev>
|
||||
<span class="prev">
|
||||
<a href="${pagination.prevPageFullPath!}" title="上一页">«</a>
|
||||
</span>
|
||||
</#if>
|
||||
<#list pagination.rainbowPages as number>
|
||||
<#if number.isCurrent>
|
||||
<span class="current">
|
||||
<a href="${number.fullPath!}">${number.page!}</a>
|
||||
</span>
|
||||
<#else>
|
||||
<span>
|
||||
<a href="${number.fullPath!}">${number.page!}</a>
|
||||
</span>
|
||||
</#if>
|
||||
</#list>
|
||||
<#if pagination.hasNext>
|
||||
<span class="next">
|
||||
<a href="${pagination.nextPageFullPath!}" title="下一页">»</a>
|
||||
</span>
|
||||
</#if>
|
||||
</#list>
|
||||
<#if pagination.hasNext>
|
||||
<span class="next">
|
||||
<a href="${pagination.nextPageFullPath!}" title="下一页">»</a>
|
||||
</span>
|
||||
</#if>
|
||||
</@paginationTag>
|
||||
</section>
|
||||
</#macro>
|
@ -1,65 +1,53 @@
|
||||
|
||||
<#--判断主页显示社交链接-->
|
||||
<#if is_index??>
|
||||
<#include "module_homeSocial.ftl" />
|
||||
<#--判断页面显示标题-->
|
||||
<#if is_tag??>
|
||||
<section class="home-title">
|
||||
<h1>${blog_title!}</h1>
|
||||
<span>${user.description!}</span>
|
||||
<div class="home-social">
|
||||
<#if settings.home_social?? && settings.home_social != ''>
|
||||
${settings.home_social!}
|
||||
</#if>
|
||||
</div>
|
||||
<h1>包含“${tag.name}”标签的文章</h1>
|
||||
</section>
|
||||
</#if>
|
||||
<#--判断页面显示标题-->
|
||||
<#if is_tag??>
|
||||
<section class="home-title">
|
||||
<h1>包含“${tag.name}”标签的文章</h1>
|
||||
</section>
|
||||
</#if>
|
||||
<#if is_category??>
|
||||
<section class="home-title">
|
||||
<h1>“${category.name}”分类下的文章</h1>
|
||||
</section>
|
||||
<section class="home-title">
|
||||
<h1>“${category.name}”分类下的文章</h1>
|
||||
</section>
|
||||
</#if>
|
||||
<#if is_search??>
|
||||
<section class="home-title">
|
||||
<h1>包含“${keyword!}”关键字的文章</h1>
|
||||
</section>
|
||||
<section class="home-title">
|
||||
<h1>包含“${keyword!}”关键字的文章</h1>
|
||||
</section>
|
||||
</#if>
|
||||
<#--显示文章-->
|
||||
<section class="home-posts">
|
||||
<#list posts.content as post>
|
||||
<div class="post-item">
|
||||
<h2>
|
||||
<a href="${post.fullPath!}">${post.title!}</a>
|
||||
</h2>
|
||||
<#--显示文章简介-->
|
||||
<p>${post.summary!}</p>
|
||||
<#--文章标签等-->
|
||||
<div class="post-meta">
|
||||
<time class="date">
|
||||
${post.createTime?string('yyyy-MM-dd')!}
|
||||
</time>
|
||||
<span class="category">
|
||||
<#list post.categories as category>
|
||||
<a href="${category.fullPath!}" >
|
||||
${category.name!}
|
||||
</a>
|
||||
</#list>
|
||||
</span>
|
||||
<span class="tags">
|
||||
<#list post.tags as tag>
|
||||
<a href="${tag.fullPath}" class="tag">${tag.name}</a>
|
||||
</#list>
|
||||
</span>
|
||||
<span class="comments">
|
||||
${post.commentCount!}°C
|
||||
</span>
|
||||
<span class="visits">
|
||||
${post.visits!}
|
||||
</span>
|
||||
<section class="home-posts">
|
||||
<#list posts.content as post>
|
||||
<div class="post-item">
|
||||
<h2>
|
||||
<a href="${post.fullPath!}">${post.title!}</a>
|
||||
</h2>
|
||||
<#--显示文章简介-->
|
||||
<p>${post.summary!}</p>
|
||||
<#--文章标签等-->
|
||||
<div class="post-meta">
|
||||
<time class="date">
|
||||
${post.createTime?string('yyyy-MM-dd')!}
|
||||
</time>
|
||||
<span class="category">
|
||||
<#list post.categories as category>
|
||||
<a href="${category.fullPath!}">
|
||||
${category.name!}
|
||||
</a>
|
||||
</#list>
|
||||
</span>
|
||||
<span class="tags">
|
||||
<#list post.tags as tag>
|
||||
<a href="${tag.fullPath}" class="tag">${tag.name}</a>
|
||||
</#list>
|
||||
</span>
|
||||
<span class="comments">
|
||||
${post.commentCount!}°C
|
||||
</span>
|
||||
<span class="visits">
|
||||
${post.visits!}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</#list>
|
||||
</section>
|
||||
</#list>
|
||||
</section>
|
@ -0,0 +1,6 @@
|
||||
function showImg(){
|
||||
document.getElementById("wxImg").style.display='block';
|
||||
}
|
||||
function hideImg(){
|
||||
document.getElementById("wxImg").style.display='none';
|
||||
}
|
Loading…
Reference in new issue