2018-09-10 09:21:59 +00:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<%
|
2018-11-01 01:35:09 +00:00
|
|
|
let title = page.title
|
2018-09-10 09:21:59 +00:00
|
|
|
|
2018-11-01 01:35:09 +00:00
|
|
|
if (is_archive()) {
|
2019-06-13 04:05:49 +00:00
|
|
|
title = titlecase(config.archive_dir)
|
2018-09-10 09:21:59 +00:00
|
|
|
|
2018-11-01 01:35:09 +00:00
|
|
|
if (is_month()) {
|
|
|
|
title += ': ' + page.year + '/' + page.month
|
|
|
|
} else if (is_year()) {
|
|
|
|
title += ': ' + page.year
|
2019-06-13 04:08:30 +00:00
|
|
|
} else if (page.current_url) {
|
|
|
|
const pageNum = Number(page.current_url.charAt(page.current_url.length - 2))
|
|
|
|
if (Number.isInteger(pageNum)) title += ': Page ' + pageNum
|
2018-09-10 09:21:59 +00:00
|
|
|
}
|
2018-11-01 01:35:09 +00:00
|
|
|
} else if (is_category()) {
|
|
|
|
title = __('category') + ': ' + page.category
|
|
|
|
} else if (is_tag()) {
|
|
|
|
title = __('tag') + ': ' + page.tag
|
2018-09-10 09:21:59 +00:00
|
|
|
}
|
|
|
|
%>
|
2018-11-01 01:35:09 +00:00
|
|
|
<title><% if (title) { %><%= title %> | <% } %><%= config.title %></title>
|
2018-09-10 09:21:59 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
2020-02-18 23:54:00 +00:00
|
|
|
<link rel="canonical" href="<%- full_url_for(path) %>">
|
2018-10-26 08:12:35 +00:00
|
|
|
<%/* Add Open Graph meta tags for easier sharing on social networking sites */%>
|
2019-06-03 13:22:45 +00:00
|
|
|
<%/* Modified from original source for compatibility with my blog */%>
|
|
|
|
<%- openGraph() %>
|
2018-11-01 01:35:09 +00:00
|
|
|
<% if (theme.rss) { %>
|
2018-09-10 09:21:59 +00:00
|
|
|
<link rel="alternate" href="<%- theme.rss %>" title="<%= config.title %>" type="application/atom+xml">
|
|
|
|
<% } %>
|
2019-09-03 14:33:10 +00:00
|
|
|
<%/* Favicon */%>
|
2019-09-03 14:45:30 +00:00
|
|
|
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png?v=yyQLrgrMjG">
|
|
|
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png?v=yyQLrgrMjG">
|
|
|
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png?v=yyQLrgrMjG">
|
2019-12-20 04:50:17 +00:00
|
|
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png?v=yyQLrgrMjG">
|
|
|
|
<link rel="icon" type="image/svg+xml" href="/svg/favicon.svg?v=yyQLrgrMjG">
|
2019-09-03 14:45:30 +00:00
|
|
|
<link rel="manifest" href="/site.webmanifest?v=yyQLrgrMjG">
|
|
|
|
<link rel="mask-icon" href="/safari-pinned-tab.svg?v=yyQLrgrMjG" color="#3f72af">
|
|
|
|
<link rel="shortcut icon" href="/favicon.ico?v=yyQLrgrMjG">
|
2019-06-26 06:56:23 +00:00
|
|
|
<meta name="apple-mobile-web-app-title" content="<%- theme.nickname %>">
|
|
|
|
<meta name="application-name" content="<%- theme.nickname %>">
|
2019-09-03 14:45:30 +00:00
|
|
|
<meta name="msapplication-TileColor" content="#3f72af">
|
2019-06-26 06:56:23 +00:00
|
|
|
<meta name="msapplication-config" content="/browserconfig.xml">
|
2019-09-03 14:45:30 +00:00
|
|
|
<meta name="theme-color" content="#3f72af">
|
2019-09-03 12:37:23 +00:00
|
|
|
|
2019-06-26 06:54:19 +00:00
|
|
|
<link rel="sitemap" type="application/xml" title="Sitemap" href="/sitemap.xml">
|
2019-08-25 23:56:02 +00:00
|
|
|
|
2019-04-10 10:29:56 +00:00
|
|
|
<%/* Fallback function for SRI */%>
|
2019-11-14 02:27:25 +00:00
|
|
|
<%- js({ src: '/js/sri.min.js', 'async': true }) %>
|
2019-04-10 10:29:56 +00:00
|
|
|
|
2019-11-14 02:27:25 +00:00
|
|
|
<%/* CSS of Chameleon theme */%>
|
|
|
|
<%- css('/css/chameleon.css') %>
|
2019-08-25 23:56:02 +00:00
|
|
|
|
2018-11-01 01:35:09 +00:00
|
|
|
<% if (theme.icons) { %>
|
2019-11-14 02:27:25 +00:00
|
|
|
<%- css({ href: '/libs/fork-awesome/1.1.7/css/fork-awesome.min.css', 'data-sri-fallback': '/forkawesome/css/fork-awesome.min.css', integrity: 'sha384-mByhW6NjnxyShh67P9+fepUvYSd7Uz/qV6e2u4kA2Fi4ZkjXxIP2mRkyK9dwK24W', crossorigin: 'anonymous' }) %>
|
2018-09-10 09:21:59 +00:00
|
|
|
<% } %>
|
|
|
|
</head>
|