diff --git a/layout/common/footer.ejs b/layout/common/footer.ejs index 1969e7a..6f140ac 100644 --- a/layout/common/footer.ejs +++ b/layout/common/footer.ejs @@ -25,7 +25,7 @@ <% if (setting.busuanzi.enable) { %> <% } %> -<% if (setting.type!=="about") { %> +<% if (page.type!=="about") { %> <%- js(setting.js.lozad) %> <% } else { %> diff --git a/layout/index.ejs b/layout/index.ejs index f151012..c88825a 100644 --- a/layout/index.ejs +++ b/layout/index.ejs @@ -1,6 +1,6 @@ <% const isChildPage = page.type === 'child' %> <% const setting = isChildPage ? Object.assign(theme, page) : theme %> -<% console.log(page.path) %> +<%# console.log(page.path) %>
<%- partial('common/header', {setting:setting}) %> @@ -15,12 +15,12 @@