blob: 45c6d8c4b4450e2e620cd922c5e26c0917d319fb [file] [log] [blame]
Tang Cheng60ba8032016-06-20 15:31:17 +08001<!DOCTYPE html>
2<html>
3<head>
4 <meta charset="utf-8">
5 <%
6 var title = page.title;
7
8 if (is_archive()){
9 title = 'Archives';
10
11 if (is_month()){
12 title += ': ' + page.year + '/' + page.month;
13 } else if (is_year()){
14 title += ': ' + page.year;
15 }
16 } else if (is_category()){
17 title = 'Category: ' + page.category;
18 } else if (is_tag()){
19 title = 'Tag: ' + page.tag;
20 }
21 %>
22 <title><% if (title){ %><%= title %> | <% } %><%= config.title %></title>
23 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
24 <%- open_graph({twitter_id: theme.twitter_id, google_plus: theme.google_plus, fb_admins: theme.fb_admins, fb_app_id: theme.fb_app_id}) %>
25 <% if (theme.rss){ %>
26 <link rel="alternate" href="<%- theme.rss %>" title="<%= config.title %>" type="application/atom+xml">
27 <% } %>
28 <% if (theme.favicon){ %>
29 <link rel="icon" href="<%- theme.favicon %>">
30 <% } %>
31 <% if (config.highlight.enable){ %>
32 <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
33 <% } %>
34
35 <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
36
37 <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" integrity="sha384-XdYbMnZ/QjLh6iI4ogqCTaIjrFk87ip+ekIjefZch0Y+PvJ8CDYtEs1ipDmPorQ+" crossorigin="anonymous">
38
39 <%- css('css/styles') %>
40 <%- partial('google-analytics') %>
41</head>