Skip to content

Commit

Permalink
new post
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruffianjiang committed May 4, 2020
1 parent 7dc8517 commit cbbedc9
Showing 1 changed file with 61 additions and 61 deletions.
122 changes: 61 additions & 61 deletions layout/_common/head.ejs
Original file line number Diff line number Diff line change
@@ -1,66 +1,66 @@
<head>
<meta charset="utf-8">
<% if (theme.douban.user && page.layout === 'books') { %>
<meta name="referrer" content="never">
<% } %>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no,email=no,adress=no">
<!-- Color theme for statusbar -->
<meta name="theme-color" content="#000000" />
<!-- 强制页面在当前窗口以独立页面显示,防止别人在框架里调用页面 -->
<meta http-equiv="window-target" content="_top" />
<% if (theme.plugins.google_site_verification) { %>
<meta name="google-site-verification" content="<%= theme.plugins.google_site_verification %>" />
<% } %>
<%
var title = page.title;
<meta charset="utf-8">
<% if (theme.douban.user && page.layout === 'books') { %>
<meta name="referrer" content="never">
<% } %>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no,email=no,adress=no">
<!-- Color theme for statusbar -->
<meta name="theme-color" content="#000000" />
<!-- 强制页面在当前窗口以独立页面显示,防止别人在框架里调用页面 -->
<meta http-equiv="window-target" content="_top" />
<% if (theme.plugins.google_site_verification) { %>
<meta name="google-site-verification" content="<%= theme.plugins.google_site_verification %>" />
<% } %>
<%
var title = page.title;
if (is_archive()){
title = __('page.archive');
if (is_archive()){
title = __('page.archive');
if (is_month()){
title += ': ' + page.year + '/' + page.month;
} else if (is_year()){
title += ': ' + page.year;
if (is_month()){
title += ': ' + page.year + '/' + page.month;
} else if (is_year()){
title += ': ' + page.year;
}
} else if (is_category()){
title = __('page.category') + ': ' + page.category;
} else if (is_tag()){
title = __('page.tag') + ': ' + page.tag;
}
} else if (is_category()){
title = __('page.category') + ': ' + page.category;
} else if (is_tag()){
title = __('page.tag') + ': ' + page.tag;
}
%>
<title><% if (title) { %><%= title %> | <% } %><%= theme.site.title || config.title %></title>
<%- open_graph({
twitter_id: theme.twitter,
google_plus: theme.google_plus,
fb_admins: theme.fb_admins,
fb_app_id: theme.fb_app_id
}) %>
<!-- Canonical links -->
<link rel="canonical" href="<%- url %>">
<% if (theme.rss){ %>
<link rel="alternate" href="<%- theme.rss %>" title="<%= config.title %>" type="application/atom+xml">
<% } %>
<% if (theme.site.favicon){ %>
<link rel="icon" href="<%- theme.site.favicon %>" type="image/x-icon">
<% } %>
<%- css('css/style') %>
<% if (page.mathjax) { %>
<link href="//cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" rel="stylesheet">
<% } %>
<% if (theme.comment.type === 'gitment' && !is_home() && !is_category() && !is_tag() && !is_archive() && post.comments) { %>
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/[email protected]/style/default.min.css">
<% } %>
<% if (theme.fancybox) { %>
<link href="//cdn.jsdelivr.net/npm/@fancyapps/[email protected]/dist/jquery.fancybox.min.css" rel="stylesheet">
<% } %>
<% if (theme.comment.type === 'gitalk') { %>
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/[email protected]/dist/gitalk.min.css">
<% } %>
%>
<title><% if (title) { %><%= title %> | <% } %><%= theme.site.title || config.title %></title>
<%- open_graph({
twitter_id: theme.twitter,
google_plus: theme.google_plus,
fb_admins: theme.fb_admins,
fb_app_id: theme.fb_app_id
}) %>
<!-- Canonical links -->
<link rel="canonical" href="<%- url %>">
<% if (theme.rss){ %>
<link rel="alternate" href="<%- theme.rss %>" title="<%= config.title %>" type="application/atom+xml">
<% } %>
<% if (theme.site.favicon){ %>
<link rel="icon" href="<%- theme.site.favicon %>" type="image/x-icon">
<% } %>
<%- css('css/style') %>
<% if (page.mathjax) { %>
<link href="//cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" rel="stylesheet">
<% } %>
<% if (theme.comment.type === 'gitment' && !is_home() && !is_category() && !is_tag() && !is_archive() && post.comments) { %>
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/[email protected]/style/default.min.css">
<% } %>
<% if (theme.fancybox) { %>
<link href="//cdn.jsdelivr.net/npm/@fancyapps/[email protected]/dist/jquery.fancybox.min.css" rel="stylesheet">
<% } %>
<% if (theme.comment.type === 'gitalk') { %>
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/[email protected]/dist/gitalk.min.css">
<% } %>
</head>

0 comments on commit cbbedc9

Please sign in to comment.