优化底部信息
This commit is contained in:
parent
39ae055491
commit
1bb985b92e
@ -1,20 +1,19 @@
|
|||||||
Copyright © <span id="year"></span> <a href="{{ blogBase['homeUrl'] }}">{{ blogBase['title'] }}</a>
|
<div id="footer1">Copyright © <span id="copyrightYear"></span> <a href="{{ blogBase['homeUrl'] }}">{{ blogBase['title'] }}</a></div>
|
||||||
<p>
|
<div id="footer2">
|
||||||
{%- if blogBase['filingNum']!='' -%}
|
{%- if blogBase['filingNum']!='' -%}
|
||||||
<a href="https://beian.miit.gov.cn/" target="_blank">{{ blogBase['filingNum'] }}</a>
|
<span id="filingNum"><a href="https://beian.miit.gov.cn/" target="_blank">{{ blogBase['filingNum'] }} • </a></span>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
<span id="runday"></span>Powered by <a href="https://meekdai.com/Gmeek.html" target="_blank">Gmeek</a>
|
<span id="runday"></span>Powered by <a href="https://meekdai.com/Gmeek.html" target="_blank">Gmeek</a>
|
||||||
</p>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
var now=new Date();
|
||||||
|
document.getElementById("copyrightYear").innerHTML=now.getFullYear();
|
||||||
|
|
||||||
if("{{ blogBase['startSite'] }}"!=""){
|
if("{{ blogBase['startSite'] }}"!=""){
|
||||||
var now=new Date();
|
|
||||||
var startSite=new Date("{{ blogBase['startSite'] }}");
|
var startSite=new Date("{{ blogBase['startSite'] }}");
|
||||||
var diff=now.getTime()-startSite.getTime();
|
var diff=now.getTime()-startSite.getTime();
|
||||||
var diffDay=Math.floor(diff/(1000*60*60*24));
|
var diffDay=Math.floor(diff/(1000*60*60*24));
|
||||||
document.getElementById("year").innerHTML=now.getFullYear();
|
document.getElementById("runday").innerHTML="{{ i18n['run'] }}"+diffDay+"{{ i18n['days'] }}"+" • ";
|
||||||
if("{{ blogBase['filingNum'] }}"!=""){document.getElementById("runday").innerHTML=" • "+"{{ i18n['run'] }}"+diffDay+"{{ i18n['days'] }}"+" • ";}
|
|
||||||
else{document.getElementById("runday").innerHTML="{{ i18n['run'] }}"+diffDay+"{{ i18n['days'] }}"+" • ";}
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user