You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.2 KiB
40 lines
1.2 KiB
2 years ago
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
<%- partial('google-analytics') %>
|
||
|
<%
|
||
|
var title = page.title;
|
||
|
|
||
|
if (is_archive()){
|
||
|
title = __('archive_a');
|
||
|
|
||
|
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;
|
||
|
}
|
||
|
%>
|
||
|
<title><% if (title){ %><%= title %> | <% } %><%= config.title %></title>
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||
|
<%- open_graph({twitter_id: theme.twitter, fb_admins: theme.fb_admins, fb_app_id: theme.fb_app_id}) %>
|
||
|
<% if (config.feed) { %>
|
||
|
<%- feed_tag() %>
|
||
|
<% } else if (theme.rss) { %>
|
||
|
<%- feed_tag(theme.rss) %>
|
||
|
<% } %>
|
||
|
<% if (theme.favicon){ %>
|
||
|
<%- favicon_tag(theme.favicon) %>
|
||
|
<% } %>
|
||
|
<% if (config.highlight.enable){ %>
|
||
|
<%- css('https://cdn.jsdelivr.net/npm/typeface-source-code-pro@0.0.71/index.min.css') %>
|
||
|
<% } %>
|
||
|
<%- css('css/style') %>
|
||
|
<% if (theme.fancybox){ %>
|
||
|
<%- css('fancybox/jquery.fancybox.min.css') %>
|
||
|
<% } %>
|
||
|
</head>
|