blog/themes/typing/layout/_partial/head.ejs

51 lines
2.0 KiB
Plaintext
Raw Normal View History

2018-09-10 09:21:59 +00:00
<!DOCTYPE html>
<html lang="<%= theme.language %>">
<head>
<meta charset="utf-8">
<%
let title = page.title
2018-09-10 09:21:59 +00:00
if (is_archive()) {
title = __('archive_a')
2018-09-10 09:21:59 +00:00
if (is_month()) {
title += ': ' + page.year + '/' + page.month
} else if (is_year()) {
title += ': ' + page.year
2018-09-10 09:21:59 +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
}
%>
<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">
<%/* Add Open Graph meta tags for easier sharing on social networking sites */%>
<%/* Modified for cloudinary compatibility */%>
<%- open_graph_cloudinary() %>
<% if (theme.rss) { %>
2018-09-10 09:21:59 +00:00
<link rel="alternate" href="<%- theme.rss %>" title="<%= config.title %>" type="application/atom+xml">
<% } %>
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#132873">
<link rel="shortcut icon" href="/favicon.ico">
<meta name="apple-mobile-web-app-title" content="<%- theme.nickname %>">
<meta name="application-name" content="<%- theme.nickname %>">
<meta name="msapplication-TileColor" content="#603cba">
<meta name="msapplication-config" content="/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<%/* Fallback function for SRI */%>
<%- js('js/sri.min') %>
2018-09-10 09:21:59 +00:00
<%- css('css/typing') %>
<% if (theme.icons) { %>
2019-04-15 04:46:07 +00:00
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/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>