perf: optimize footer and configuration
This commit is contained in:
parent
374cbbe944
commit
7da5563765
|
@ -227,8 +227,8 @@ pjax:
|
|||
# Footer settings
|
||||
# ---------------------------------------------------------------------------------------
|
||||
footer:
|
||||
since: 2020
|
||||
icp:
|
||||
since: 2020 # the starting year of your website, Can be null
|
||||
icp: # ICP record number of your website, Can be null
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------------------
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<div class="info-container">
|
||||
<div class="copyright-info info-item">
|
||||
©
|
||||
<% if (theme.footer.since) { %>
|
||||
<% if (theme.footer.hasOwnProperty('since') && theme.footer.since) { %>
|
||||
<span><%= theme.footer.since %></span> -
|
||||
<% } %>
|
||||
<%= date(new Date(), 'YYYY') %> <i class="fas fa-heart icon-animate"></i> <a href="/"><%= theme.base_info.author || config.author %></a>
|
||||
|
@ -28,6 +28,5 @@
|
|||
<% if (theme.footer.hasOwnProperty('icp') && theme.footer.icp) { %>
|
||||
<div class="icp-info info-item"><a target="_blank" rel="nofollow" href="https://beian.miit.gov.cn"><%= theme.footer.icp %></a></div>
|
||||
<% } %>
|
||||
|
||||
</div>
|
||||
</footer>
|
||||
|
|
Loading…
Reference in New Issue