-
Notifications
You must be signed in to change notification settings - Fork 40
/
head.html
64 lines (50 loc) · 3.05 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{% assign description = '' %}
{% if page.seo-description %}
{% assign description = page.seo-description | escape %}
{% elsif page.description %}
{% assign description = page.description | escape %}
{% else %}
{% assign description = site.description | strip_html | normalize_whitespace | truncate: 160 | escape %}
{% endif %}
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% if page.seo-title %}{{ page.seo-title | escape }}{% else %}{% if page.title %}{{ page.title | append: ' - ' | append: site.title | escape }}{% else %}{{ site.title | escape }}{% endif %}{% endif %}</title>
<meta name="description" content="{{ description }}">
{% if page.layout == "default" or page.layout == "post" or page.layout == "certification" %}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
{% else %}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
{% endif %}
<link rel="icon" type="image/x-icon" href="/favicon.ico">
{% css openliberty %}
{% css coderay-custom %}
{% for css_name in layout.css %}
{% css {{css_name}} %}
{% endfor %}
{% for css_name in page.css %}
{% css {{css_name}} %}
{% endfor %}
{% if jekyll.environment == 'production' and site.google_tag_manager %}
{% include google_tag_manager_head.html %}
{% endif %}
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">
<link href="https://fonts.googleapis.com/css?family=Asap:400,500" rel="stylesheet">
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@OpenLibertyIO" />
<meta name="twitter:title" content="{% if page.seo-title %}{{ page.seo-title }}{% else %}{{site.title}}{% endif %}" />
<meta name="twitter:description" content="{{ description }}" />
<meta name="twitter:image" content="https://openliberty.io/img/twitter_card.jpg" />
<meta property='og:title' content="{% if page.seo-title %}{{ page.seo-title }}{% else %}{{site.title}}{% endif %}" />
<meta property='og:image' content="{% if page.open-graph-image %} {{page.open-graph-image}} {% else %}https://openliberty.io/img/twitter_card.jpg{% endif %}" />
<meta property='og:description' content="{{ description }}" />
<meta property='og:url' content="{{ page.url | replace:'index.html','' | absolute_url }}" />
<meta property='og:type' content="website" />
<meta name="google-site-verification" content="h2P030H9b66CyL1nEmWfrZB8Fr14h9LmVMG7Ur0caBs" />
{% if jekyll.environment != 'production' or page.permalink == '/blog/redirected.html' %}
{% include_cached noindex.html %}
{% endif %}
<script async defer src="https://buttons.github.io/buttons.js"></script>
</head>