74 lines
2.8 KiB
JavaScript
74 lines
2.8 KiB
JavaScript
<!DOCTYPE html>
|
|
|
|
<% if (config.language){ %>
|
|
<html lang="<%= config.language %>">
|
|
<% } else { %>
|
|
<html lang="en">
|
|
<% }%>
|
|
|
|
<head>
|
|
<!-- Yandex.Metrika counter -->
|
|
<script type="text/javascript" >
|
|
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
|
|
m[i].l=1*new Date();
|
|
for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
|
|
k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
|
|
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
|
|
|
|
ym(88722337, "init", {
|
|
clickmap:true,
|
|
trackLinks:true,
|
|
accurateTrackBounce:true
|
|
});
|
|
</script>
|
|
<noscript><div><img src="https://mc.yandex.ru/watch/88722337" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
|
|
<!-- /Yandex.Metrika counter -->
|
|
<meta charset="utf-8" />
|
|
<% 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 = page.category; } else if (is_tag()) { title = __('tag') + ': ' +
|
|
page.tag; } %> <% if (page.keywords){ %>
|
|
<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 %>" />
|
|
<% } %> <%- css('dist/main') %>
|
|
<%- css('css/fonts/remixicon') %>
|
|
<%- css('css/custom') %> <% if (theme.progressBar){ %>
|
|
<script src="https://cdn.staticfile.org/pace/1.2.4/pace.min.js"></script>
|
|
<% } %> <%- partial('google-analytics') %> <%- partial('baidu-analytics')
|
|
%>
|
|
<link
|
|
rel="stylesheet"
|
|
href="https://cdn.jsdelivr.net/npm/@sweetalert2/theme-bulma@5.0.1/bulma.min.css"
|
|
/>
|
|
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11.0.19/dist/sweetalert2.min.js"></script>
|
|
|
|
<!-- mermaid -->
|
|
<% if (theme.mermaid.enable) { %>
|
|
<script src="<%= theme.mermaid.cdn %>"></script>
|
|
<% } %>
|
|
<style>
|
|
.swal2-styled.swal2-confirm {
|
|
font-size: 1.6rem;
|
|
}
|
|
</style>
|
|
</head>
|
|
</html>
|
|
</html>
|