From 374cbbe944897c72806373815ae3ce3115e20ca6 Mon Sep 17 00:00:00 2001 From: XPoet Date: Thu, 28 Jan 2021 23:29:20 +0800 Subject: [PATCH] perf: footer.icp add non-null judgment --- layout/_partial/footer.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/_partial/footer.ejs b/layout/_partial/footer.ejs index 7bc7e17..26966dd 100644 --- a/layout/_partial/footer.ejs +++ b/layout/_partial/footer.ejs @@ -25,7 +25,7 @@
<%- __('powered_by', 'Hexo') %> | <%- __('theme') %> Keep v<%= theme.version %>
- <% if (theme.footer.icp ){ %> + <% if (theme.footer.hasOwnProperty('icp') && theme.footer.icp) { %>
<%= theme.footer.icp %>
<% } %>