blob: 16be12f8a531e36d842d41cc67012b78ef626d7c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<% if(config.author){ %>
<meta name="author" content="<%- config.author %>">
<% } %>
<% if(config.subtitle){ %>
<meta name="subtitle" content="<%- config.subtitle %>">
<% } %>
<% if(config.description){ %>
<meta name="description" content="<%- config.description %>">
<% } %>
<% if(config.keywords){ %>
<meta name="keywords" content="<%- config.keywords %>">
<% } %>
<% var 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; } %>
<title>
<% if (title){ %>
<%= title %> | <% } %>
<%= config.title %>
</title>
<%# favicon %>
<% if (theme.favicon){ %>
<link rel="icon" href="<%- url_for(theme.favicon) %>">
<% } %>
<%# css list %>
<% if (theme.stylesheets !==undefined && theme.stylesheets.length>
0) { %>
<!-- stylesheets list from _config.yml -->
<% theme.stylesheets.forEach(url=> { %>
<link rel="stylesheet" href="<%- url_for(url) %>">
<% }); %>
<% } %>
<%# font preload %>
<link rel="preload" href="<%- url_for('/fonts/TensentypeCode.woff2') %>" as="font" type="font/woff2" crossorigin>
<%# javascript list %>
<% if (theme.scripts !==undefined &&
theme.scripts.length> 0) { %>
<!-- scripts list from _config.yml -->
<% theme.scripts.forEach(url=> { %>
<script
src="<%- url_for(url) %>"></script>
<% }); %>
<% } %>
<%# mathjax support %>
<% if(theme.mathjax_enable){
%>
<script
src="https://polyfill.alicdn.com/polyfill.js?features=es6"></script>
<script
id="MathJax-script"
async
src="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/mathjax/3.2.0/es5/tex-mml-chtml.js"></script>
<% } %>
<%# valine comment
support %>
<% if(theme.valine.enable){
%>
<script
src='https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/valine/1.4.16/Valine.min.js'></script>
<% } %>
|