-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathdefault.hbs
94 lines (79 loc) · 4.12 KB
/
default.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!DOCTYPE html>
<html>
<head>
{{! Document Settings }}
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
{{! Page Meta }}
<title>{{meta_title}}</title>
{{#if post}}
<meta name="keywords" content="{{#each post.tags}}{{name}},{{/each}}" />
{{else}}
<meta name="keywords" content="Calin, Cruceru, c, c++, engineering, vi, algorithms" />
{{/if}}
<meta name="description" content="{{meta_description}}" />
<meta name="HandheldFriendly" content="True" />
<meta name="MobileOptimized" content="320" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
{{! Favicons. I used http://realfavicongenerator.net/ - a great favicons generator. }}
<link rel="shortcut icon" href="{{asset "favicons/favicon.ico"}}">
<link rel="apple-touch-icon" sizes="57x57" href="{{asset "favicons/apple-touch-icon-57x57.png"}}">
<link rel="apple-touch-icon" sizes="114x114" href="{{asset "favicons/apple-touch-icon-114x114.png"}}">
<link rel="apple-touch-icon" sizes="72x72" href="{{asset "favicons/apple-touch-icon-72x72.png"}}">
<link rel="apple-touch-icon" sizes="144x144" href="{{asset "favicons/apple-touch-icon-144x144.png"}}">
<link rel="apple-touch-icon" sizes="60x60" href="{{asset "favicons/apple-touch-icon-60x60.png"}}">
<link rel="apple-touch-icon" sizes="120x120" href="{{asset "favicons/apple-touch-icon-120x120.png"}}">
<link rel="apple-touch-icon" sizes="76x76" href="{{asset "favicons/apple-touch-icon-76x76.png"}}">
<link rel="apple-touch-icon" sizes="152x152" href="{{asset "favicons/apple-touch-icon-152x152.png"}}">
<link rel="icon" type="image/png" href="{{asset "favicons/favicon-192x192.png"}}" sizes="192x192">
<link rel="icon" type="image/png" href="{{asset "favicons/favicon-160x160.png"}}" sizes="160x160">
<link rel="icon" type="image/png" href="{{asset "favicons/favicon-96x96.png"}}" sizes="96x96">
<link rel="icon" type="image/png" href="{{asset "favicons/favicon-16x16.png"}}" sizes="16x16">
<link rel="icon" type="image/png" href="{{asset "favicons/favicon-32x32.png"}}" sizes="32x32">
<meta name="msapplication-TileColor" content="#2b5797" />
<meta name="msapplication-TileImage" content="{{asset "favicons/mstile-144x144.png"}}" />
<meta name="msapplication-config" content="{{asset "favicons/browserconfig.xml"}}" />
{{! Styles }}
<link href='http://fonts.googleapis.com/css?family=Lora' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="{{asset "build/all.min.css"}}" />
{{! Google Analytics }}
{{> "analytics"}}
{{! Twitter card }}
<meta property="twitter:card" content="summary" />
<meta property="twitter:site" content="@calin_cruceru" />
<meta property="twitter:title" content="{{meta_title}}" />
{{#if post}}
{{#post}}
<meta property="twitter:description" content="{{excerpt characters=180}}" />
{{/post}}
{{else}}
<meta property="twitter:description" content="{{meta_description}}" />
{{/if}}
{{! Open Graph }}
<meta property="og:type" content="article" />
<meta property="og:title" content="{{meta_title}}" />
{{#if post}}
{{#post}}
<meta property="og:description" content="{{excerpt words=50}}" />
{{/post}}
{{else}}
<meta property="og:description" content="{{meta_description}}" />
{{/if}}
<meta property="og:image" content="http://i106.photobucket.com/albums/m260/lauricyka/calin-cruceru_zpsb0d8343f.png" />
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="200" />
<meta property="og:image:height" content="200" />
{{! Ghost outputs important style and meta data with this tag }}
{{ghost_head}}
</head>
<body class="{{body_class}}">
{{> "sidebar"}}
<div class="content">
{{{body}}}
</div>
{{! Ghost outputs important scripts and data with this tag }}
{{ghost_foot}}
{{! JS}}
<script type="text/javascript" src="{{asset "build/all.min.js"}}"></script>
</body>
</html>