diff --git a/_config.yml b/_config.yml index e83eacd..ea30f62 100755 --- a/_config.yml +++ b/_config.yml @@ -155,4 +155,4 @@ less: compress: true # 主题的CDN地址 -themecdn: //cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@18.12.24/ +themecdn: //cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@18.12.26/ diff --git a/layout/_partial/head.ejs b/layout/_partial/head.ejs index 41bf1f8..6cbcf3f 100755 --- a/layout/_partial/head.ejs +++ b/layout/_partial/head.ejs @@ -17,55 +17,73 @@ %> <% if (title) { %><%= title %> | <% } %><%= config.title %> <% if (page.keywords && config.keywords){ %> - + <% } else if (page.keywords) { %> - + <% } else if (config.keywords) { %> - + <% } %> + <% if (page.description && config.description){ %> + + <% } else if (page.description) { %> + + <% } else if (config.description) { %> + + <% } %> + + <%- feed_tag(config.feed.path, {title: config.title}) %> + - <%- favicon_tag(config.favicon) %> - <%- feed_tag(config.feed.path, {title: config.title}) %> - - - + + <% if (config.import && config.import.link){ %> + <% (config.import.link||[]).forEach(function(item){ %> + type="<%= item.type %>"<% } %> <% if (item.sizes){ %>sizes="<%= item.sizes %>"<% } %> href="<%- item.href %>" <% if (item.color){ %>color="<%= item.color %>"<% } %>> + <% }) %> + <% } %> - + + <% if (config.import && config.import.meta){ %> + <% (config.import.meta||[]).forEach(function(item){ %> + + <% }) %> + <% } %> <% if (config.import && config.import.style == true) { %> - <%- css(theme.themecdn + 'css/style.min.css') %> + <%- css(theme.themecdn + 'css/style.css') %> <% } else if (config.import && config.import.style && config.import.style.length > 0){ %> - <%- css(config.import.style) %> + <%- css(config.import.style) %> <% } else { %> - <%- css('style.css') %> + <%- css('style.css') %> <% } %> <% if (config.import && config.import.fontawesome == true) { %> - <%- css('//cdn.jsdelivr.net/gh/xaoxuu/cdn-fontawesome@5.6.3/css/all.min.css') %> + <%- css('//cdn.jsdelivr.net/gh/xaoxuu/cdn-fontawesome@5.6.3/css/all.min.css') %> <% } else if (config.import && config.import.fontawesome && config.import.fontawesome.length > 0){ %> - <%- css(config.import.fontawesome) %> + <%- css(config.import.fontawesome) %> <% } else { %> - <%- css('fontawesome-free-5.6.3-web/css/all.min.css') %> + <%- css('fontawesome-free-5.6.3-web/css/all.min.css') %> <% } %> - <% if (config.import && config.import.google_fonts && config.import.google_fonts.length > 0){ %> - + + <% } %> + + - <% if (config.google_analytics) { %> + <% } %> - <% if (config.baidu_analytics_key) { %> +