-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmeta.html
More file actions
37 lines (35 loc) · 1.3 KB
/
meta.html
File metadata and controls
37 lines (35 loc) · 1.3 KB
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
<meta name="author" content="{{ site.title }}">
{%- if summary -%}
<meta name="description" content="{{ summary }}">
<meta property="og:description" content="{{ summary }}">
{% else %}
<meta name="description" content="{{ site.description }}">
<meta property="og:description" content="{{ site.description }}">
{% endif %}
<meta name="theme-color" content="{{ tokens.color.bg.accent }}">
<meta property="og:site_name" content="{{ site.title }}">
{% if title %}
<meta property="og:title" content="{{ title }}">
{% else %}
<meta property="og:title" content="{{ site.title }}">
{% endif %}
{%- if summary -%}
<meta name="og:description" content="{{ summary }}">
{% else %}
<meta name="og:description" content="{{ site.description }}">
{% endif %}
<meta property="og:url" content="{{ site.url }}{{ page.url }}">
{% if tags contains 'post' %}
<meta property="og:type" content="article">
{% else %}
<meta property="og:type" content="website">
{% endif %}
<meta property="og:locale" content="{{ "en_GB" }}">
{%- if tags contains 'post' %}
<meta
property="article:published_time"
content="{{ page.date|date_to_xmlschema }}"
>
{%- endif -%}
<meta property="og:image" content="{{site.url}}/img/assets/opengraph.png">
<link rel="canonical" href="{{ site.url }}{{ page.url }}">