缝缝补补

This commit is contained in:
julylies 2022-05-28 00:36:30 +08:00
parent e7abfbdd03
commit 46e3df9264
3 changed files with 84 additions and 11 deletions

View File

@ -48,7 +48,32 @@
</div>
</#if>
<section class="sub-footer">
<p>© ${.now?string("yyyy")} <a href="${blog_url!}">${(user.nickname)!}</a>. All Rights Reserved. Theme By <a href="https://github.com/Dreamer-Paul/Single" target="_blank" rel="nofollow">Single</a>.</p>
<p>© ${.now?string("yyyy")} <a href="${blog_url!}">${(user.nickname)!}</a>. All Rights Reserved. Theme By <a href="https://github.com/Dreamer-Paul/Single" target="_blank" rel="nofollow">Single</a>.
<a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=${settings.footer_ga_select_number!}" target="_blank">黔ICP备2020009371号-1</a></p>
<div class="github-badge">
<a style="color: #fff" rel="license" href="http://halo.run" target="_blank" title="由 Halo 驱动" data-pjax-state="">
<span class="badge-subject">Powered</span><span class="badge-value bg-blue">Halo</span>
</a>
</div>
<div class="github-badge">
<a style="color: #fff" rel="license" href="https://github.com/Dreamer-Paul/Single" target="_blank" title="本站主题为 Sakura 主题" data-pjax-state="">
<span class="badge-subject">Theme</span><span class="badge-value bg-red">Single</span>
</a>
</div>
<div class="github-badge">
<a style="color: #fff" rel="license" href="https://www.upyun.com/?utm_source=lianmeng&utm_medium=referral" target="_blank" title="CDN" data-pjax-state="">
<span class="badge-subject">CDN</span><span class="badge-value bg-brightgreen">又拍云</span>
</a>
</div>
<div class="github-badge">
<span class="badge-subject">访客数</span><span class="badge-value bg-orange" id="busuanzi_value_site_uv" target="_blank" title="本站访客量"></span>
</div>
<div class="github-badge">
<span class="badge-subject">访问量</span><span class="badge-value bg-orange" id="busuanzi_value_site_pv" target="_blank" title="本站浏览量"></span>
</div>
<div class="github-badge">
<span class="badge-subject">本站勉勉强强运行</span><span class="badge-value bg-blueviolet" target="_blank" title="本站已运行" id="span_dt_dt"></span>
</div>
</section>
</div>
</footer>
@ -58,6 +83,7 @@
<#if is_post??|| is_journals??>
<script type='text/javascript' src="${theme_base!}/source/plugins/prism/prism.min.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>
</html>

View File

@ -12,7 +12,20 @@
</div>
</section>
<article class="post-content">
<blockquote>这篇文章上次修改于${sinceLastTime!}天前,可能其部分内容已经发生变化,如有疑问可询问作者。</blockquote>
<blockquote>
文章于
<#assign time = (.now?long-(post.editTime?long))/1000 />
<#if time gte 31104000>${(time/31104000)?int}年前更新,文章内容已经很陈旧了,也许不再适用!
<#elseif time gte 2592000>${(time/2592000)?int}个月前更新,文章距上次编辑时间较远,部分内容可能已经过时!
<#elseif time gte 172800>${(time/86400)?int}天前更新,请放心阅读!
<#elseif time gte 86400>昨天更新,请放心阅读!
<#elseif time gte 3600>${(time/3600)?int}小时前更新,请放心阅读!
<#elseif time gte 60>${(time/60)?int}分钟前更新,请放心阅读!
<#elseif time gt 0>${time?int}秒前更新,请放心阅读!
<#else>刚刚更新,请放心阅读!
</#if>
本文一共${post.wordCount!}个字,阅读完预计需要 ${(post.wordCount/600)?int }分钟${((post.wordCount%600)/10)?int+1}秒
</blockquote>
${post.formatContent!}
</article>
<section class="post-near">
@ -46,25 +59,18 @@
<span class="post-tags">
<#list post.tags as tag>
<a href="${tag.fullPath}" class="tag">${tag.name}</a>
<#--<#if 1+2 >3 >
<a href="${tag.fullPath}" class="tag">${tag.name}</a>
<#else>
</#if>
-->
</#list>
</span>
</div>
<section class="post-author">
<figure class="author-avatar">
<img src="https://www.huangdf.xyz/upload/2021/08/logo-4d5e052dd4074b078ba3f982423435d8.jpg" alt="${user.nickname!}" width="200" height="200">
<img src="${user.avatar!}" alt="${user.nickname!}" width="200" height="200">
</figure>
<div class="author-info">
<span>版权归属:${user.nickname!}</span><br>
<#if settings.author_text?? && settings.author_text!=''><span>作者信息:${settings.author_text!}</span><br></#if>
<span>本文链接:<a href="${post.fullPath!}">${post.fullPath!}</a></span><br>
<span>许可协议:本文使用<a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">《署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)》</a>协议授权</span><br>
<#--<p>${settings.author_text!}</p>-->
</div>
</section>
<@global.comment target=post type="post" />

View File

@ -947,3 +947,44 @@ footer .sub-footer p{ font-size: .875em }
.token.important { font-weight: normal }
.namespace { opacity: .7 }*/
/*
july
*/
.github-badge {
display: inline-block;
border-radius: 4px;
text-shadow: none;
font-size: 12px;
color: #fff;
line-height: 15px;
background-color: #abbac3;
margin-bottom: 5px;
}
.github-badge .badge-subject {
display: inline-block;
background-color: #4d4d4d;
padding: 4px 4px 4px 6px;
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
}
.github-badge .badge-value {
display: inline-block;
padding: 4px 6px 4px 4px;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
}
.github-badge .bg-blue {
background-color: #007ec6!important;
}
.github-badge .bg-red {
background-color: #e05d44!important;
}
.github-badge .bg-brightgreen {
background-color: #4dc820!important;
}
.github-badge .bg-orange {
background-color: orange!important;
}
.github-badge .bg-blueviolet {
background-color: #8833d7!important;
}