mirror of
https://github.com/tangkunyin/hexo-theme-jsimple.git
synced 2026-01-25 14:56:28 +00:00
51 lines
1.5 KiB
Plaintext
51 lines
1.5 KiB
Plaintext
<!--[if lte IE 9]><meta http-equiv="refresh" content="0;url=<%= theme.siteUrl %>/warn.html"><![endif]-->
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no">
|
|
<meta http-equiv="mobile-agent" content="format=html5; url=<%= theme.siteUrl %>">
|
|
<link rel="stylesheet" media="all" href="/css/base.css">
|
|
<link rel="stylesheet" media="all" href="/css/reading.css">
|
|
<link rel="stylesheet" media="all" href="/css/base-read-mode.css">
|
|
<script src="/js/modernizr.js"></script>
|
|
<%
|
|
var title;
|
|
if(is_home()){
|
|
title = config.title + ' - ' + config.subtitle;
|
|
}else if(is_archive()){
|
|
title = 'Archives';
|
|
if (is_month()){
|
|
title += ': ' + page.year + '/' + page.month;
|
|
} else if (is_year()){
|
|
title += ': ' + page.year;
|
|
}
|
|
} else if (is_category()){
|
|
title = 'Category: ' + page.category;
|
|
} else if (is_tag()){
|
|
title = 'Tag: ' + page.tag;
|
|
}else{
|
|
title = page.title;
|
|
}
|
|
%>
|
|
<title><%= title %></title>
|
|
<meta name="author" content="<%= theme.author %>">
|
|
<%
|
|
var keywords;
|
|
if(page.keywords){
|
|
keywords = page.keywords;
|
|
}else{
|
|
keywords = config.keywords;
|
|
}
|
|
%>
|
|
<meta name="keywords" content="<%= keywords %>">
|
|
<%
|
|
var description;
|
|
if(page.description){
|
|
description = page.description;
|
|
}else{
|
|
description = config.description;
|
|
}
|
|
%>
|
|
<meta name="description " content="<%= description %>">
|
|
<% if (theme.favicon){ %>
|
|
<link rel="icon" href="<%- theme.favicon %>">
|
|
<% } %> |