在主题目录/layout/_partial/footer.ejs中 <div class=“footer-device”>和<div class=“site-info”>的下面之间加入如下代码
<!-- 网站数据统计 -->
<div class="footer-device">
<p style="font-family: 'Ubuntu', sans-serif;">
<span style="color: #ff9999;padding-left: 20px;">
<!-- 网站运行时间统计 -->
<i class="fa fa-clock-o" aria-hidden="true"></i>
<span id="time" align="center">载入时间中...</span>
<script>
var now = new Date();
function createtime() {
var grt= new Date("<%- theme.siteBuildingTime %>");//在此处修改你的建站时间
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("time").innerHTML = "小破站在各种灾难中苟活了 "+ dnum +" 天 "+hnum + " 小时 " + mnum + " 分 " + snum + " 秒";
}
setInterval("createtime()",250);
</script>
</span>
</p>
</div>
<div class="footer-device">
<p style="font-family: 'Ubuntu', sans-serif;">
<span style="color: #b9b9b9;padding-left: 20px;">
<!-- 全网站字数统计wordcount -->
<i class="fa fa-line-chart" aria-hidden="true" style="color: #ff9999;display:inline-block"></i> 博客全站共: <span class="post-count" style="color:#ff9999;"><%= totalcount(site) %></span>字</span>
<!-- 不蒜子网页计数器 -->
<% if (theme.busuanziStatistics && theme.busuanziStatistics.totalTraffic) { %>
<span style="padding-left: 20px;"><i class="fa fa-fire" aria-hidden="true" style="color: #ff9999;display:inline-block"></i><span id="busuanzi_container_site_pv">总访问量: <span id="busuanzi_value_site_pv" style="color:#ff9999;"></span>次</span>
</span>
<% } %>
<% if (theme.busuanziStatistics && theme.busuanziStatistics.totalNumberOfvisitors) { %>
<span style="padding-left: 20px;"><i class="fa fa-user" aria-hidden="true" style="color: #ff9999;display:inline-block"></i><span id="busuanzi_container_site_uv">总访问人数: <span id="busuanzi_value_site_uv" style="color:#ff9999;"></span>人</span>
</span>
<% } %>
</span>
</p>
</div>