% if (page.robots) { %>
<% } else if (theme.robots) { %>
<% if (is_home()) { %>
<% } else if (is_archive()) { %>
<% } else if (is_category()) { %>
<% } else if (is_tag()) { %>
<% } %>
<% } %>
<%
var 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;
}
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 (page.description == undefined) {
if (page.excerpt) {
description = truncate(strip_html(page.excerpt), {length: 240});
} else if (page.more) {
description = truncate(strip_html(page.more), {length: 240});
}
}
%>
<% if (title) { %><%= title %> - <% } %><%= config.title %>
<% if (keywords){ %>
<% } %>
<% if (description){ %>
<% } %>
<% 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 %>
<% }) %>
<% } %>
<% if (theme.plugins.fancybox && theme.plugins.fancybox.css) { %>
<%- css(theme.plugins.fancybox.css) %>
<% } %>
<% if (theme.plugins.nodewaves && theme.plugins.nodewaves.css) { %>
<%- css(theme.plugins.nodewaves.css) %>
<% } %>
<% if (config.favicon) { %>
<% } %>
<% if (theme.aplayer.enable) { %>
<% } %>
<% if (config.import && config.import.link){ %>
<% (config.import.link||[]).forEach(function(item){ %>
<%- item %><% }) %>
<% } %>
<% if (config.use_cdn && theme.info && theme.info.cdn && theme.info.cdn.css && theme.info.cdn.css.style) { %>
<%- css(theme.info.cdn.css.style) %>
<% } else { %>
<%- css('style.css') %>
<% } %>
<% if (config.google_analytics_key) { %>
<% } %>
<% if (config.baidu_analytics_key) { %>
<% } %>