-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhead.html
129 lines (119 loc) · 5.5 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
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<head>
<meta charset="utf-8">
<meta name="revision" content="{{ site.github.build_revision }}">
<meta name="date.created" content="{{ site.time }}">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="{% t slogan %}">
<meta name="author" content="{{ site.author }}">
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
{% if page.slogan %}
{% capture page_slogan %}{% t page.slogan %}{% endcapture %}
{% else %}
{% capture page_slogan %}{% t slogan %}{% endcapture %}
{% endif %}
<meta property="og:description" content="{{ page_slogan }}" />
<meta property="og:url" content="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}" />
<meta property="og:site_name" content="{{ site.title }}" />
<meta property="og:type" content="website" />
{% capture title %}{% t page.title %}{% endcapture %}
{% capture page_title %}{% if title %}{{ title | append: " | " | append: site.title }}{% else %}{{ site.title }}{% endif %}{% endcapture %}
<title>{{ page_title }}</title>
<meta property="og:title" content="{{ page_title }}" />
<meta name="twitter:card" content="summary" />
<meta property="twitter:domain" content="{{ site.url }}" />
<meta name="twitter:site" content="@{{ site.data.social.twitter.handle }}" />
<meta property="twitter:url" content="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}" />
<meta name="twitter:title" content="{{ page_title }}" />
<meta name="twitter:image" content="{{ site.url }}{{ site.data.social.twitter.image }}" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon.ico">
<!-- preload styles -->
{% for style in site.data.style.sheets %}
<link rel="preload" type="text/css" href="{{ site.baseurl_root }}/assets/css/{{ style.name }}" as="style" onload="this.onload=null;this.rel='stylesheet'">
{% endfor %}
<noscript>
{% for style in site.data.style.sheets %}
<link rel="stylesheet" type="text/css" href="{{ site.baseurl_root }}/assets/css/{{ style.name }}"/>
{% endfor %}
</noscript>
<!-- preload background image -->
<link rel="preload" as="image" fetchpriority="high" href="{{ site.data.style.header-image }}" type="image/webp">
<link rel="preload" as="image" href="{{ site.data.style.accceu-image }}" type="image/webp">
<!-- additional styles -->
{% for style in page.head.styles %}
<link rel="stylesheet" type="text/css" href="{{ style.url }}">
{% endfor %}
{% if page.event and page.event.date and page.event.location %}
{% capture event_name %}{% t page.event.name %}{% endcapture %}
{% capture event_description %}{% t page.event.description %}{% endcapture %}
<!-- Event infos https://developers.google.com/search/docs/appearance/structured-data/event#standard-event -->
<!--
{{ page.published_at }}
-->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Event",
"name": "{{ event_name | escape }}",
"startDate": "{{ page.event.date.start }}",
"endDate": "{{ page.event.date.end }}",
"eventAttendanceMode": "https://schema.org/OfflineEventAttendanceMode",
"eventStatus": "https://schema.org/EventScheduled",
"location": {
"@type": "Place",
"name": "{% t page.event.location.name %}",
"url": "{% t page.event.location.url %}",
"address": {
"@type": "PostalAddress",
"streetAddress": "{{ page.event.location.address.street }}",
"addressLocality": "{{ page.event.location.address.locality }}",
"postalCode": "{{ page.event.location.address.code }}",
"addressCountry": "{{ page.event.location.address.country }}"
}
},
"image": [
"{{ page.event.images | join: '", "' }}"
],
"description": "{{ event_description | escape | strip_newlines}}",
"offers": {
"priceCurrency": "EUR",
{% if page.event.offer %}
"@type": "Offer",
"url": "{{ page.event.offer.url }}",
"price": "{{ page.event.offer.price }}",
"availability": "https://schema.org/InStock",
"validFrom": "{{ page.event.offer.from | date: '%Y-%m-%dT%H:%M' }}",
"validThrough": "{{ page.event.date.end | date: '%Y-%m-%dT%H:%M' }}"
{% else if page.event.offers.size > 1 %}
"@type": "AggregateOffer",
"highPrice": "{{ page.event.offers | sort_natural: price | first | map: 'price'}}",
"lowPrice": "{{ page.event.offers | sort_natural: price | last | map: 'price'}}",
"offerCount": " {{ page.event.offers.size }}",
"offers" : [
{% for offer in page.event.offers %}
{
"@type": "Offer",
"url": " {{ offer.url }}",
"price": "{{ offer.price }}",
"availability": "https://schema.org/InStock",
"validFrom": "{{ offer.from | date: '%Y-%m-%dT%H:%M' }}",
"validThrough": "{{ page.event.date.end | date: '%Y-%m-%dT%H:%M' }}"
},
{% endfor %}
{}
]
{% endif %}
},
"organizer": {
"@type": "Organization",
"name": "{{ site.author }}",
"url": "{{ site.url }}"
},
"performer": {
"@type": "Organization",
"name": "{{ site.author }}",
"url": "{{ site.url }}"
}
}
</script>
{% endif %}
</head>