forked from cofess/hexo-theme-pure
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7dc8517
commit cbbedc9
Showing
1 changed file
with
61 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |