2020-04-01 10:14:18 +08:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
2020-11-24 10:55:24 +08:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
2021-10-08 13:55:03 +08:00
|
|
|
<meta name="keywords" content="<%= page.keywords || config.keywords || 'Hexo Theme Keep' %>">
|
|
|
|
<meta name="description" content="<%= page.description || config.description || 'Hexo Theme Keep' %>">
|
2020-12-28 15:56:24 +08:00
|
|
|
<meta name="author" content="<%= theme.base_info.author || config.author || 'Keep Team' %>">
|
2020-04-01 10:14:18 +08:00
|
|
|
<%
|
|
|
|
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;
|
2020-10-29 21:57:58 +08:00
|
|
|
} else {
|
|
|
|
title = __(page.title);
|
2020-04-01 10:14:18 +08:00
|
|
|
}
|
|
|
|
%>
|
|
|
|
<title>
|
2020-12-28 15:56:24 +08:00
|
|
|
<% if (title) { %>
|
|
|
|
<%= title %> |
|
2020-10-21 19:36:38 +08:00
|
|
|
<% } %>
|
2020-12-28 15:56:24 +08:00
|
|
|
<%= theme.base_info.title || config.title || 'Keep Theme' %>
|
2020-04-01 10:14:18 +08:00
|
|
|
</title>
|
2021-03-29 10:22:56 +08:00
|
|
|
<%- css('css/style') %>
|
2020-11-30 18:25:40 +08:00
|
|
|
<%- favicon_tag(theme.style.favicon) %>
|
2022-09-26 11:18:10 +08:00
|
|
|
<%- __css('fontawesome/css/fontawesome.min.css') %>
|
|
|
|
<%- __css('fontawesome/css/regular.min.css') %>
|
|
|
|
<%- __css('fontawesome/css/solid.min.css') %>
|
|
|
|
<%- __css('fontawesome/css/brands.min.css') %>
|
2022-11-17 22:56:08 +08:00
|
|
|
<%- exportConfig() %>
|
2020-04-01 10:14:18 +08:00
|
|
|
</head>
|
|
|
|
|