2019-12-03 11:37:44 +00:00
|
|
|
<!DOCTYPE html>
|
2020-03-25 02:41:27 +00:00
|
|
|
|
|
|
|
<% if (config.language){ %>
|
|
|
|
<html lang="<%= config.language %>" >
|
|
|
|
<% } else { %>
|
2019-12-03 11:37:44 +00:00
|
|
|
<html lang="en">
|
2020-03-25 02:41:27 +00:00
|
|
|
<% }%>
|
2019-12-06 12:21:24 +00:00
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<% var title = page.title; if (is_archive()) { title = __('archive_a'); if
|
2019-12-03 11:37:44 +00:00
|
|
|
(is_month()) { title += ': ' + page.year + '/' + page.month; } else if
|
|
|
|
(is_year()) { title += ': ' + page.year; } } else if (is_category()) { title
|
2020-02-02 02:59:00 +00:00
|
|
|
= page.category; } else if (is_tag()) {
|
2019-12-03 11:37:44 +00:00
|
|
|
title = __('tag') + ': ' + page.tag; } %> <% if (page.keywords){ %>
|
2019-12-06 12:21:24 +00:00
|
|
|
<meta name="keywords" content="<%= page.keywords %>,<%= config.keywords %>" />
|
|
|
|
<% } else if (config.keywords){ %>
|
|
|
|
<meta name="keywords" content="<%= config.keywords %>" />
|
|
|
|
<% } %> <% if (page.description){ %>
|
|
|
|
<meta name="description" content="<%= page.description %>" />
|
|
|
|
<% } else if (config.description){ %>
|
|
|
|
<meta name="description" content="<%= config.description %>" />
|
|
|
|
<% } %>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
|
|
|
|
<title>
|
|
|
|
<% if (title){ %><%= title %> | <% } %> <%= config.title %>
|
|
|
|
</title>
|
|
|
|
<% if (theme.favicon){ %>
|
|
|
|
<link rel="shortcut icon" href="<%- theme.favicon %>" />
|
|
|
|
<% } %>
|
2020-03-24 04:51:01 +00:00
|
|
|
<%- css('dist/main') %>
|
2020-03-29 14:48:12 +00:00
|
|
|
<%- css('css/custom') %>
|
2020-03-06 03:20:54 +00:00
|
|
|
<% if (theme.progressBar){ %>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/pace-js@1.0.2/pace.min.js"></script>
|
|
|
|
<% } %>
|
2019-12-06 12:21:24 +00:00
|
|
|
<%- partial('google-analytics') %>
|
|
|
|
<%- partial('baidu-analytics') %>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
</html>
|