42 lines
1.4 KiB
Plaintext
42 lines
1.4 KiB
Plaintext
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<%
|
|
var title = page.title;
|
|
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;
|
|
}
|
|
%>
|
|
<meta name="renderer" content="webkit">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" >
|
|
<link rel="dns-prefetch" href="<%= config.url %>">
|
|
<title><% if (title){ %><%= title %> | <% } %><%= config.title %></title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
|
<%- open_graph({twitter_id: theme.twitter, google_plus: theme.google_plus, fb_admins: theme.fb_admins, fb_app_id: theme.fb_app_id}) %>
|
|
<% if (theme.rss){ %>
|
|
<link rel="alternative" href="<%- theme.rss %>" title="<%= config.title %>" type="application/atom+xml">
|
|
<% } %>
|
|
<% if (theme.favicon){ %>
|
|
<link rel="icon" href="<%- theme.favicon %>">
|
|
<% } %>
|
|
<%- css('css/main.css') %>
|
|
<%- css('css/extra.css') %>
|
|
<style type="text/css">
|
|
#container.show {
|
|
background: <%= theme.style && theme.style.slider ? theme.style.slider : 'linear-gradient(200deg,#a0cfe4,#e8c37e)' %>;
|
|
}
|
|
</style>
|
|
<%- partial('google-analytics') %>
|
|
<%- partial('baidu-analytics') %>
|
|
</head>
|