<% var separator = theme.title_join_string || theme.tab_title_separator var title = page.title ? [page.title, config.title].join(separator) : config.title var keywords = page.keywords || config.keywords if (keywords instanceof Array) { keywords = keywords.join(',') } var description = page.description || page.excerpt || (is_post() && page.content) || config.description if (description) { description = strip_html(description).substring(0, 200).trim().replace(/\n/g, ' ') } var ogImage = page.og_img || page.index_img var ogConfig = Object.assign({ image: ogImage && url_for(ogImage) }, theme.open_graph) %> <% if (theme.force_https) { %> <% } %> <% if (theme.open_graph.enable) { %> <%- open_graph(ogConfig) %> <% } else { %> <% } %> <% if ((theme.post.meta.views.enable && theme.post.meta.views.source === 'busuanzi') || (theme.footer.statistics.enable && theme.footer.statistics.source === 'busuanzi')) { %> <% } %> <% if (theme.custom_head) { %> <%- theme.custom_head %> <% } %> <%= title %> <%- partial('_partials/css.ejs') %> <%- export_config() %> <%- js_ex(theme.static_prefix.internal_js, 'utils.js') %> <%- js_ex(theme.static_prefix.internal_js, 'color-schema.js') %> <%- partial('_partials/plugins/analytics.ejs') %> <%- inject_point('head') %>