一、版權聲明優化
需要調整的檔案位置, 如圖:

在
post.ejs
搜尋
copyright
, 對應的代碼段如下圖:
将其注釋掉, 然後修改為下面的代碼
<% if(theme.post.copyright.enable && theme.post.copyright.content && page.copyright !== false) { %><p class="note note-warning">
<strong>本文作者: </strong><a href="<%- url_for() %>"><%- theme.about.name || config.author || config.title %></a> <br>
<strong>本文連結: </strong><a href="<%- full_url_for(page.path) %>"><%- full_url_for(page.path) %></a> <br>
<strong>版權聲明: </strong><%- theme.post.copyright.content %>
</p>
<% } %>
最終顯示效果:
二、Tag的使用
測試内容
三、頁腳優化
修改頁腳内容代碼檔案位置:
本人代碼詳情如下内容:
<footer class="text-center mt-5 py-3">
<%- theme.footer.content %>
<!-- 添加網站運作時間 -->
<div class="footer-content">
<div>
<span id="timeDate">載入天數...</span>
<span id="times">載入時分秒...</span>
<script>
var now = new Date();
function createtime(){
var grt= new Date("04/03/2020 00:00:00");//此處修改你的建站時間或者網站上線時間
now.setTime(now.getTime()+250);
days = (now - grt ) / 1000 / 60 / 60 / 24;
dnum = Math.floor(days);
hours = (now - grt ) / 1000 / 60 / 60 - (24 * dnum);
hnum = Math.floor(hours);
if(String(hnum).length ==1 ){
hnum = "0" + hnum;
}
minutes = (now - grt ) / 1000 /60 - (24 * 60 * dnum) - (60 * hnum);
mnum = Math.floor(minutes);
if(String(mnum).length ==1 ){
mnum = "0" + mnum;
}
seconds = (now - grt ) / 1000 - (24 * 60 * 60 * dnum) - (60 * 60 * hnum) - (60 * mnum);
snum = Math.round(seconds);
if(String(snum).length ==1 ){
snum = "0" + snum;
}
document.getElementById("timeDate").innerHTML = "🚀 "+dnum+" 天"; //此次自定義顯示内容
document.getElementById("times").innerHTML = hnum + " 小時 " + mnum + " 分 " + snum + " 秒";
} //此次自定義顯示内容
setInterval("createtime()",250);
</script>
</div>
</div>
<!-- 統計通路量資訊 -->
<%- partial('_partial/statistics.ejs') %>
<!-- 個人和備案資訊 -->
<div>©2020-2021<a href="javascript:void(0)">ClearlightY</a> <a href="http://beian.miit.gov.cn/">冀ICP備19019307号-2</a></div>
<!-- <%- partial('_partial/beian.ejs') %> -->
<% if(theme.web_analytics.cnzz) { %>
<!-- cnzz Analytics Icon -->
<span id="cnzz_stat_icon_<%- theme.web_analytics.cnzz %>" style="display: none"></span>
<% } %>
</footer>
<!-- SCRIPTS -->
<%- partial('_partial/scripts.ejs') %>
- Hexo’s Fluid 主題私人定制(持續更新)