-
Notifications
You must be signed in to change notification settings - Fork 1
/
head.html
42 lines (35 loc) · 1.87 KB
/
head.html
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
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="canonical" href="{{ site.url }}{{site.baseurl}}{{ page.url }}" />
<title>
{% if page.crawlertitle %}
{{ page.crawlertitle | escape }}
{% elsif page.title %}
{{ page.title | escape }}
{% else %}
{{ site.title | escape }}
{% endif %}
</title>
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}">
<link href='https://fonts.googleapis.com/css?family=PT+Serif:400,400italic,700|Roboto+Condensed:700&subset=latin' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}">
<meta property="og:url" content="{{ site.url }}{{ page.url }}">
<meta property="og:type" content="website">
<meta property="og:title" content="{{ page.title }}">
<meta property="og:description" content="{{ page.summary }}">
<meta property="og:site_name" content="{{ site.title }}">
<meta name="twitter:card" content="summary">
<meta name="twitter:url" content="{{ site.url }}{{ page.url }}">
<meta name="twitter:title" content="{{ page.title }}">
<meta name="twitter:description" content="{{ page.summary }}">
{% if page.bg %}
<meta property="og:image" content="{{ site.url }}{{ site.images }}/{{ page.bg }}">
<meta name="twitter:image" content="{{ site.url }}{{ site.images }}/{{ page.bg }}">
{% else %}
<meta property="og:image" content="{{ site.url }}{{ site.images }}/bg.svg">
<meta name="twitter:image" content="{{ site.url }}{{ site.images }}/bg.svg">
{% endif %}
</head>