2020-04-01 10:14:18 +08:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<%
|
|
|
|
let title = page.title;
|
|
|
|
if (is_archive()) {
|
|
|
|
title = __('archive');
|
|
|
|
if (is_month()) {
|
|
|
|
title += ': ' + page.year + '/' + page.month;
|
|
|
|
} else if (is_year()) {
|
|
|
|
title += ': ' + page.year;
|
|
|
|
}
|
|
|
|
} else if (is_category()) {
|
|
|
|
title = __('category') + ': ' + page.category;
|
|
|
|
} else if (is_tag()) {
|
|
|
|
title = __('tag') + ': ' + page.tag;
|
|
|
|
} else if (page.title === 'about') {
|
|
|
|
title = __('about');
|
2020-10-21 19:36:38 +08:00
|
|
|
} else if (page.title === 'links') {
|
|
|
|
title = __('links');
|
2020-04-01 10:14:18 +08:00
|
|
|
}
|
|
|
|
%>
|
|
|
|
<title>
|
2020-10-21 19:36:38 +08:00
|
|
|
<% if (title){ %><%= title %> |
|
|
|
|
<% } %>
|
2020-10-28 19:33:43 +08:00
|
|
|
<%= theme.base_info.title || config.title || 'ILS' %>
|
2020-04-01 10:14:18 +08:00
|
|
|
</title>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
2020-09-11 15:06:38 +08:00
|
|
|
<% if (theme.style.favicon){ %>
|
|
|
|
<%- favicon_tag(theme.style.favicon) %>
|
2020-04-01 10:14:18 +08:00
|
|
|
<% } %>
|
|
|
|
<%- css('css/style') %>
|
|
|
|
<%- export_config() %>
|
|
|
|
</head>
|
|
|
|
|