<% if (page.robots) { %> <% } else if (theme.seo && theme.seo.robots) { %> <% if (is_home()) { %> <% if (page.prev == 0) { %> <% } else { %> <% } %> <% } else if (is_archive()) { %> <% } else if (is_category()) { %> <% } else if (is_tag()) { %> <% } %> <% } %> <% var title = page.seo_title || page.title; var keywords = page.keywords || ''; var description = page.description || ''; if (is_archive()) { title = __('navbar.archive'); if (is_month()) { title += __('symbol.colon') + page.year + '/' + page.month; } else if (is_year()) { title += __('symbol.colon') + page.year; } } else if (is_category()) { title = __('navbar.category') + __('symbol.colon') + page.category; } else if (is_tag()) { title = __('navbar.tag') + __('symbol.colon') + page.tag; } else if (is_home() && page.prev == 0) { keywords = config.keywords || ''; description = config.description || ''; } if (theme.seo && theme.seo.use_tags_as_keywords) { if (!keywords && page.tags && page.tags.length > 0) { let tags = page.tags.map(function(t){return t.name}).join(','); if (tags.length > 0) { keywords += tags; } } } if (theme.seo && theme.seo.use_excerpt_as_description) { if (page.description == undefined) { if (page.excerpt) { description = truncate(strip_html(page.excerpt), {length: 160}); } } } %> <% if (title) { %><%= title %> - <% } %><%= config.title %> <% if (keywords){ %> <% } else { %> <% } %> <% if (description){ %> <% } else { %> <% } %> <% if (config.feed && config.feed.path){ %> <%- feed_tag(config.feed.path, {title: config.title}) %> <% } %> <% if (config.import && config.import.meta){ %> <% (config.import.meta||[]).forEach(function(item){ %> <%- item %> <% }) %> <% } %> <%- css('https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css') %> <% if (theme.plugins.nodewaves && theme.plugins.nodewaves.css) { %> <%- css(theme.plugins.nodewaves.css) %> <% } %> <% if (config.favicon) { %> <% } %> <% if (theme.plugins.aplayer.enable) { %> <% } %> <% if (theme.comments.vssue && theme.comments.vssue.clientId) { %> <% } %> <% if (config.import && config.import.link){ %> <% (config.import.link||[]).forEach(function(item){ %> <%- item %><% }) %> <% } %> <% if (config.highlight.enable != true) { %> <% if (theme.plugins.highlightjs && theme.plugins.highlightjs.css) { %> <%- css(theme.plugins.highlightjs.css) %> <% } %> <% } %> <% if (config.use_cdn && theme.info.cdn && theme.info.cdn.css) { %> <%- css(theme.info.cdn.css) %> <% } else { %> <%- css('css/style.css') %> <% } %> <% if (config.google_analytics_key) { %> <% } %> <% if (config.baidu_analytics_key) { %> <% } %>