重构代码ing

This commit is contained in:
julylies 2022-06-22 00:55:06 +08:00
parent 55ff980c13
commit 9ed73a84a9
16 changed files with 371 additions and 265 deletions

View File

@ -1,11 +1,11 @@
<#include "header.ftl" /> <#include "header.ftl" />
<@head title="400-${blog_title!}"/> <@head title="400-${blog_title!}" />
<main> <main>
<div class="wrap"> <div class="wrap">
<div class="error-page"> <div class="error-page">
<h1>400</h1> <h1>400</h1>
<p>嘤嘤嘤,找不到页面啦</p> <p>嘤嘤嘤,找不到页面啦</p>
<img src="${theme_base!}/source/images/404.png"/> <img src="${theme_base!}/source/images/404.png" />
</div> </div>
</div> </div>
</main> </main>

View File

@ -1,11 +1,11 @@
<#include "header.ftl" /> <#include "header.ftl" />
<@head title="404 - ${blog_title!}"/> <@head title="404 - ${blog_title!}" />
<main> <main>
<div class="wrap"> <div class="wrap">
<div class="error-page"> <div class="error-page">
<h1>404</h1> <h1>404</h1>
<p>嘤嘤嘤,找不到页面啦</p> <p>嘤嘤嘤,找不到页面啦</p>
<img src="${theme_base!}/source/images/404.png"/> <img src="${theme_base!}/source/images/404.png" />
</div> </div>
</div> </div>
</main> </main>

View File

@ -78,14 +78,6 @@
</div> </div>
</footer> </footer>
<@global.footer /> <@global.footer />
<script type='text/javascript' src="${theme_base!}/source/js/kico.js"></script> <#include "module/module_js.ftl"/>
<script type='text/javascript' src="${theme_base!}/source/js/single.js"></script>
<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>
</body> </body>
</html> </html>

View File

@ -2,82 +2,85 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="zh"> <html lang="zh">
<head> <head>
<title>${title}</title> <title>${title}</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="renderer" content="webkit" /> <meta name="renderer" content="webkit" />
<meta name="format-detection" content="telephone=no,email=no,adress=no"/> <meta name="format-detection" content="telephone=no,email=no,adress=no" />
<meta http-equiv="Cache-Control" content="no-siteapp"> <meta http-equiv="Cache-Control" content="no-siteapp">
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
<meta name="keywords" content="${meta_keywords!}"/> <meta name="keywords" content="${meta_keywords!}" />
<meta name="description" content="${meta_description!}" /> <meta name="description" content="${meta_description!}" />
<#--<meta name="theme-color" content="#4285f4">--> <#--<meta name="theme-color" content="#4285f4">-->
<meta name="theme-color" media="(prefers-color-scheme: light)" content="white"> <meta name="theme-color" media="(prefers-color-scheme: light)" content="white">
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="black"> <meta name="theme-color" media="(prefers-color-scheme: dark)" content="black">
<#-- 导航面包蟹--> <#-- 导航面包蟹-->
<meta property="og:image" content="${options.blog_favicon!}"> <meta property="og:image" content="${options.blog_favicon!}">
<meta property="og:description" content="${meta_description!}"> <meta property="og:description" content="${meta_description!}">
<meta property="og:type" content="website"> <meta property="og:type" content="website">
<meta property="og:locale" content="zh_CN"> <meta property="og:locale" content="zh_CN">
<meta property="og:site_name" content="${blog_title!}"> <meta property="og:site_name" content="${blog_title!}">
<meta property="og:url" content="${blog_url!}"> <meta property="og:url" content="${blog_url!}">
<meta property="og:title" content="${title!} ${blog_title!}"> <meta property="og:title" content="${title!} ${blog_title!}">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> <meta name="viewport"content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="author" content="${user.nickname!}"> <meta name="author" content="${user.nickname!}">
<meta http-equiv="x-dns-prefetch-control" content="on"> <meta http-equiv="x-dns-prefetch-control" content="on">
<meta name="site" content="${blog_url!}"> <meta name="site" content="${blog_url!}">
<meta property="twitter:partner" content="ogwp"> <meta property="twitter:partner" content="ogwp">
<link rel="canonical" href="${blog_url!}"> <link rel="canonical" href="${blog_url!}">
<#if !(options.blog_favicon?? && options.blog_favicon!='')> <#if !(options.blog_favicon?? && options.blog_favicon!='' )>
<link rel="apple-touch-icon" type="images/x-icon" href="${theme_base!}/source/images/icon.png" sizes="180x180"/> <link rel="apple-touch-icon" type="images/x-icon" href="${theme_base!}/source/images/icon.png"sizes="180x180" />
</#if> </#if>
<link rel="alternate" type="application/rss+xml" title="atom 1.0" href="${atom_url!}"> <link rel="alternate" type="application/rss+xml" title="atom 1.0" href="${atom_url!}">
<link href="${theme_base!}/source/css/kico.css" rel="stylesheet" type="text/css"/> <link href="${theme_base!}/source/css/kico.css" rel="stylesheet" type="text/css" />
<link href="${theme_base!}/source/css/single.css" rel="stylesheet" type="text/css"/> <link href="${theme_base!}/source/css/single.css" rel="stylesheet" type="text/css" />
<link href="${theme_base!}/source/css/font-awesome-animation.min.css" rel="stylesheet" type="text/css"/> <link href="${theme_base!}/source/css/font-awesome-animation.min.css" rel="stylesheet" type="text/css" />
<link href="${theme_base!}/source/plugins/prism/katex.min.css" rel="stylesheet" type="text/css"/> <link href="${theme_base!}/source/plugins/prism/katex.min.css" rel="stylesheet" type="text/css" />
<#--<link href="https://fastly.jsdelivr.net/gh/FortAwesome/Font-Awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>--> <#--<link href="https://fastly.jsdelivr.net/gh/FortAwesome/Font-Awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />-->
<link href="https://fastly.jsdelivr.net/gh/FortAwesome/Font-Awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/> <link href="https://fastly.jsdelivr.net/gh/FortAwesome/Font-Awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<link rel="preload stylesheet" as="style" href="${theme_base!}/source/plugins/prism/themes/prism-${settings.Code_highlighting!}.css"> <link rel="preload stylesheet" as="style" href="${theme_base!}/source/plugins/prism/themes/prism-${settings.Code_highlighting!}.css">
<@global.head /> <@global.head />
<#if !(options.blog_favicon?? && options.blog_favicon!='')> <#if !(options.blog_favicon?? && options.blog_favicon!='' )>
<link rel="shortcut icon" type="images/x-icon" href="${theme_base!}/source/images/icon.png" sizes="192x192"/> <link rel="shortcut icon" type="images/x-icon" href="${theme_base!}/source/images/icon.png" sizes="192x192" />
</#if> </#if>
<#-- 背景图片--> <#-- 背景图片-->
<#if settings.background?? && settings.background!=''> <#if settings.background?? && settings.background!=''>
<style>body:before{content: ''; background-image: url(${settings.background!})}</style> <style>
</#if> body:before {
<#-- 自定css--> content: '';
<#if settings.custom_css?? && settings.custom_css!=''> background-image: url(${settings.background!})
${custom_css!} }
</#if> </style>
</#if>
<#-- 自定css-->
<#if settings.custom_css?? && settings.custom_css!=''>
${custom_css!}
</#if>
</head> </head>
<#-- 夜间模式 --> <#-- 夜间模式 -->
<body <body <#if (settings.night_mode?? && settings.night_mode=='2' )>
<#if (settings.night_mode?? && settings.night_mode == '2')> class="dark-theme"
class="dark-theme" <#elseif (settings.night_mode?? && settings.night_mode=='1' )>
<#elseif (settings.night_mode?? && settings.night_mode == '1')> <#assign currentDateTime=.now>
<#assign currentDateTime = .now> <#assign hour=currentDateTime?string("HH")>
<#assign hour=currentDateTime?string("HH") > <#if (hour?eval>=20|| hour?eval <=6)>
<#if (hour?eval >=20|| hour?eval <=6) > class="dark-theme"
class="dark-theme" </#if>
</#if> </#if>
</#if> >
> <header>
<header> <div class="head-title">
<div class="head-title"> <h4>${blog_title!}</h4>
<h4>${blog_title!}</h4> </div>
</div> <div class="head-action">
<div class="head-action"> <div class="toggle-btn"></div>
<div class="toggle-btn"></div> <div class="light-btn"></div>
<div class="light-btn"></div> <div class="search-btn"></div>
<div class="search-btn"></div> </div>
</div> <form class="head-search" method="get" action="/search" role="search">
<form class="head-search" method="get" action="/search" role="search"> <input class="text" type="search" name="keyword" placeholder="搜索什么呢つ﹏⊂" required>
<input class="text" type="search" name="keyword" placeholder="搜索什么呢つ﹏⊂" required> </form>
</form> <nav class="head-menu">
<nav class="head-menu"> <#include "module/module_menu.ftl">
<#include "module/module_menu.ftl"> </nav>
</nav> </header>
</header> </#macro>
</#macro>

View File

@ -1,10 +1,10 @@
<#include "header.ftl"> <#include "header.ftl">
<@head title="${blog_title!}" /> <@head title="${blog_title!}" />
<#include "module/module_pageNav.ftl"> <#include "module/module_pageNav.ftl">
<main> <main>
<div class="wrap min"> <div class="wrap min">
<#include "module/module_post.ftl"> <#include "module/module_post.ftl">
<@pageNav method="index" /> <@pageNav method="index" />
</div> </div>
<main> <main>
<#include "footer.ftl"> <#include "footer.ftl">

View File

@ -1,7 +1,7 @@
<#macro comment target,type> <#macro comment target,type>
<#if !post.disallowComment!false> <#if !post.disallowComment!false>
<script src="//cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.min.js"></script> <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> <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}"/> <halo-comment id="${post.id?c}" type="${type}" />
</#if> </#if>
</#macro> </#macro>

View File

@ -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>

12
module/module_js.ftl Normal file
View File

@ -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>

View File

@ -1,24 +1,26 @@
<h1>友情链接</h1> <h1>友情链接</h1>
<article> <article>
<div class="links"> <div class="links">
<@linkTag method="listTeams"> <@linkTag method="listTeams">
<#list teams as item> <#list teams as item>
<h3 class="link-title"> <h3 class="link-title">
<span class="fake-title">${((item.team!'')?length>0)?string((item.team!''), '小伙伴们')}</span> <span class="fake-title">${((item.team!'')?length>0)?string((item.team!''), '小伙伴们')}</span>
</h3> </h3>
<ul class="link-items fontSmooth"> <ul class="link-items fontSmooth">
<#list item.links?sort_by('priority')?reverse as link> <#list item.links?sort_by('priority')?reverse as link>
<li class="link-item"> <li class="link-item">
<a class="link-item-inner effect-apollo" href="${link.url!}" title="${link.name!}" target="_blank"> <a class="link-item-inner effect-apollo" href="${link.url!}" title="${link.name!}"
<img class="lazyload" data-src="${theme_base!}/source/images/svg/loader/trans.ajax-spinner-preloader.svg" src="${link.logo!}" onerror="imgError(this)"> target="_blank">
<span class="sitename">${link.name!}</span> <img class="lazyload"
<div class="linkdes">${link.description!}</div> data-src="${theme_base!}/source/images/svg/loader/trans.ajax-spinner-preloader.svg"
</a> src="${link.logo!}" onerror="imgError(this)">
</li> <span class="sitename">${link.name!}</span>
</#list> <div class="linkdes">${link.description!}</div>
</ul> </a>
</#list> </li>
</@linkTag> </#list>
</div> </ul>
</article> </#list>
</@linkTag>
</div>
</article>

View File

@ -1,31 +1,31 @@
<@menuTag method="tree"> <@menuTag method="tree">
<#list menus?sort_by('priority') as menu> <#list menus?sort_by('priority') as menu>
<#if menu.children?? && menu.children?size gt 0> <#if menu.children?? && menu.children?size gt 0>
<div class="has-child"> <div class="has-child">
</#if > </#if>
<a <#if menu.url?? && menu.url?trim?length gt 0> href="${menu.url!}" target="${menu.target!}" </#if>> <a <#if menu.url?? && menu.url?trim?length gt 0> href="${menu.url!}" target="${menu.target!}" </#if>>
<span class="faa-parent animated-hover"> <span class="faa-parent animated-hover">
<#if menu.icon?? && menu.icon?trim?length gt 0> <#if menu.icon?? && menu.icon?trim?length gt 0>
<i class="${menu.icon}" aria-hidden="true"></i> <i class="${menu.icon}" aria-hidden="true"></i>
</#if>${menu.name} </#if>${menu.name}
</span> </span>
</a> </a>
<#if menu.children?? && menu.children?size gt 0> <#if menu.children?? && menu.children?size gt 0>
<div class="sub-menu"> <div class="sub-menu">
<#list menu.children?sort_by('priority') as child> <#list menu.children?sort_by('priority') as child>
<a href="${child.url!}" target="${child.target!}"> <a href="${child.url!}" target="${child.target!}">
<span class="faa-parent animated-hover"> <span class="faa-parent animated-hover">
<#if child.icon?? && child.icon?trim?length gt 1> <#if child.icon?? && child.icon?trim?length gt 1>
<i class="${child.icon}" aria-hidden="true"></i> <i class="${child.icon}" aria-hidden="true"></i>
</#if>${child.name} </#if>${child.name}
</span> </span>
</a> </a>
</#list> </#list>
</div > </div>
</#if> </#if>
<#if menu.children?? && menu.children?size gt 0> <#if menu.children?? && menu.children?size gt 0>
</div > </div>
</#if > </#if>
</#list> </#list>
</@menuTag> </@menuTag>

View File

@ -1,27 +1,28 @@
<#macro pageNav method> <#macro pageNav method keyword="">
<section class="page-navigator"> <section class="page-navigator">
<@paginationTag method="${method}" slug="${slug!}" page="${posts.number}" keyword="${keyword}" total="${posts.totalPages}" display="3"> <@paginationTag method="${method}" slug="${slug!}" page="${posts.number}" total="${posts.totalPages}"
<#if pagination.hasPrev> keyword="${keyword}" display="3">
<span class="prev"> <#if pagination.hasPrev>
<a href="${pagination.prevPageFullPath!}" title="上一页">«</a> <span class="prev">
</span> <a href="${pagination.prevPageFullPath!}" title="上一页">«</a>
</#if> </span>
<#list pagination.rainbowPages as number> </#if>
<#if number.isCurrent> <#list pagination.rainbowPages as number>
<span class="current"> <#if number.isCurrent>
<a href="${number.fullPath!}">${number.page!}</a> <span class="current">
<a href="${number.fullPath!}">${number.page!}</a>
</span> </span>
<#else> <#else>
<span> <span>
<a href="${number.fullPath!}">${number.page!}</a> <a href="${number.fullPath!}">${number.page!}</a>
</span> </span>
</#if>
</#list>
<#if pagination.hasNext>
<span class="next">
<a href="${pagination.nextPageFullPath!}" title="下一页">»</a>
</span>
</#if> </#if>
</#list>
<#if pagination.hasNext>
<span class="next">
<a href="${pagination.nextPageFullPath!}" title="下一页">»</a>
</span>
</#if>
</@paginationTag> </@paginationTag>
</section> </section>
</#macro> </#macro>

View File

@ -1,65 +1,53 @@
<#include "module_homeSocial.ftl" />
<#--判断主页显示社交链接--> <#--判断页面显示标题-->
<#if is_index??> <#if is_tag??>
<section class="home-title"> <section class="home-title">
<h1>${blog_title!}</h1> <h1>包含“${tag.name}”标签的文章</h1>
<span>${user.description!}</span>
<div class="home-social">
<#if settings.home_social?? && settings.home_social != ''>
${settings.home_social!}
</#if>
</div>
</section> </section>
</#if> </#if>
<#--判断页面显示标题-->
<#if is_tag??>
<section class="home-title">
<h1>包含“${tag.name}”标签的文章</h1>
</section>
</#if>
<#if is_category??> <#if is_category??>
<section class="home-title"> <section class="home-title">
<h1>“${category.name}”分类下的文章</h1> <h1>“${category.name}”分类下的文章</h1>
</section> </section>
</#if> </#if>
<#if is_search??> <#if is_search??>
<section class="home-title"> <section class="home-title">
<h1>包含“${keyword!}”关键字的文章</h1> <h1>包含“${keyword!}”关键字的文章</h1>
</section> </section>
</#if> </#if>
<#--显示文章--> <#--显示文章-->
<section class="home-posts"> <section class="home-posts">
<#list posts.content as post> <#list posts.content as post>
<div class="post-item"> <div class="post-item">
<h2> <h2>
<a href="${post.fullPath!}">${post.title!}</a> <a href="${post.fullPath!}">${post.title!}</a>
</h2> </h2>
<#--显示文章简介--> <#--显示文章简介-->
<p>${post.summary!}</p> <p>${post.summary!}</p>
<#--文章标签等--> <#--文章标签等-->
<div class="post-meta"> <div class="post-meta">
<time class="date"> <time class="date">
${post.createTime?string('yyyy-MM-dd')!} ${post.createTime?string('yyyy-MM-dd')!}
</time> </time>
<span class="category"> <span class="category">
<#list post.categories as category> <#list post.categories as category>
<a href="${category.fullPath!}" > <a href="${category.fullPath!}">
${category.name!} ${category.name!}
</a> </a>
</#list> </#list>
</span> </span>
<span class="tags"> <span class="tags">
<#list post.tags as tag> <#list post.tags as tag>
<a href="${tag.fullPath}" class="tag">${tag.name}</a> <a href="${tag.fullPath}" class="tag">${tag.name}</a>
</#list> </#list>
</span> </span>
<span class="comments"> <span class="comments">
${post.commentCount!}°C ${post.commentCount!}°C
</span> </span>
<span class="visits"> <span class="visits">
${post.visits!} ${post.visits!}
</span> </span>
</div>
</div> </div>
</div> </#list>
</#list> </section>
</section>

View File

@ -160,18 +160,18 @@ home_social:
name: qq name: qq
label: 腾讯QQ label: 腾讯QQ
type: text type: text
qzone: #qzone:
name: qzone # name: qzone
label: QQ空间 # label: QQ空间
type: text # type: text
github: github:
name: github name: github
label: Github label: Github
type: text type: text
lofter: #lofter:
name: lofter # name: lofter
label: Lofter # label: Lofter
type: text # type: text
bili: bili:
name: bili name: bili
label: BiliBili label: BiliBili
@ -188,18 +188,18 @@ home_social:
name: facebook name: facebook
label: Facebook label: Facebook
type: text type: text
googleplus: # googleplus:
name: googleplus # name: googleplus
label: Google+ # label: Google+
type: text # type: text
jianshu: # jianshu:
name: jianshu # name: jianshu
label: 简书 # label: 简书
type: text # type: text
csdn: # csdn:
name: csdn # name: csdn
label: CSDN # label: CSDN
type: text # type: text
zhihu: zhihu:
name: zhihu name: zhihu
label: 知乎 label: 知乎
@ -216,20 +216,20 @@ home_social:
name: stackoverflow name: stackoverflow
label: Stack Overflow label: Stack Overflow
type: text type: text
customize_icon: # customize_icon:
name: customize_icon # name: customize_icon
label: 自定义社交图标 # label: 自定义社交图标
type: text # type: text
customize_title: # customize_title:
name: customize_title # name: customize_title
label: 自定义社交标题 # label: 自定义社交标题
type: text # type: text
customize_link: # customize_link:
name: customize_link # name: customize_link
label: 自定义社交链接 # label: 自定义社交链接
type: text # type: text
home_social: customize_homeSocial:
name: home_social name: customize_homeSocial
label: 社交链接 label: 社交链接
type: textarea type: textarea
placeholder: '' placeholder: ''

View File

@ -1,7 +1,7 @@
<#include "header.ftl"> <#include "header.ftl">
<@head title="${sheet.title!} - ${blog_title!}"/> <@head title="${sheet.title!} - ${blog_title!}"/>
<div class="wrap min"> <div class="wrap min">
<section class="post-title"> <section class="post-title">
<h2>${sheet.title!}</h2> <h2>${sheet.title!}</h2>
</section> </section>
<article class="post-content"> <article class="post-content">

6
source/js/july.js Normal file
View File

@ -0,0 +1,6 @@
function showImg(){
document.getElementById("wxImg").style.display='block';
}
function hideImg(){
document.getElementById("wxImg").style.display='none';
}

View File

@ -9,7 +9,6 @@
本代码为奇趣保罗原创并遵守 MIT 开源协议欢迎访问我的博客https://paugram.com 本代码为奇趣保罗原创并遵守 MIT 开源协议欢迎访问我的博客https://paugram.com
---- */ ---- */
Array.prototype.remove = function (value) { Array.prototype.remove = function (value) {
var index = this.indexOf(value); var index = this.indexOf(value);
if(index > -1) this.splice(index, 1); if(index > -1) this.splice(index, 1);