perf: footer.icp add non-null judgment
This commit is contained in:
parent
49a49df779
commit
374cbbe944
|
@ -25,7 +25,7 @@
|
|||
<div class="theme-info info-item">
|
||||
<%- __('powered_by', '<a target="_blank" href="https://hexo.io">Hexo</a>') %> | <%- __('theme') %> <a class="theme-version" target="_blank" href="https://github.com/XPoet/hexo-theme-keep">Keep v<%= theme.version %></a>
|
||||
</div>
|
||||
<% if (theme.footer.icp ){ %>
|
||||
<% 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>
|
||||
<% } %>
|
||||
|
||||
|
|
Loading…
Reference in New Issue