Skip to content

Commit 1abce22

Browse files
James BrundageJames Brundage
authored andcommitted
feat: WebSocket Website ( Fixes #19 )
Fixing output directory
1 parent 20fa663 commit 1abce22

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

docs/_includes/OpenGraph.html

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<meta content="{{ site.title }}" property="og:site_name" />
2+
{% if page.title %}
3+
<meta content="{{ page.title }}" property="og:title" />
4+
{% else %}
5+
<meta content="{{ site.title }}" property="og:title" />
6+
{% endif %}
7+
{% if page.type %}
8+
<meta content="{{ page.type }}" property="og:type" />
9+
{% else %}
10+
<meta content="website" property="og:type" />
11+
{% endif %}
12+
{% if page.description %}
13+
<meta content="{{ page.description }}" property="og:description" />
14+
<meta name="description" content="{{ page.description }}" />
15+
<meta name="twitter:description" content="{{ page.description }}" />
16+
{% elsif content %}
17+
18+
<meta property="og:description" content="{{ content | strip_html | truncatewords: 20 }}" />
19+
<meta name="description" content="{{ content | strip_html | truncatewords: 20 }}" />
20+
<meta name="twitter:description" content="{{ content | strip_html | truncatewords: 20 }}" />
21+
22+
{% elsif site.description %}
23+
<meta content="{{ site.description }}" property="og:description" />
24+
<meta name="description" content="{{ site.description }}" />
25+
<meta name="twitter:description" content="{{ site.description }}" />
26+
{% endif %}
27+
{% if page.date %}
28+
<meta content="{{ page.date | date_to_xmlschema }}" property="article:published_time" />
29+
{% endif %}
30+
{% if page.url %}
31+
<meta content="{{ site.url }}{{ page.url }}" property="og:url" />
32+
<meta name="twitter:url" content="{{ site.url }}{{ page.url }}" />
33+
<meta name="twitter:domain" content="{{ site.url }}" />
34+
{% endif %}
35+
36+
{% if page.image %}
37+
<meta content="/{{ page.image }}" property="og:image" />
38+
<meta name="twitter:image" content="{{ site.url }}/{{ page.image }}" />
39+
<meta name="twitter:image:src" content="{{ site.url }}/{{ page.image }}" />
40+
{% elsif site.image %}
41+
<meta content="{{ site.url }}/{{ site.image }}" property="og:image" />
42+
<meta name="twitter:image" content="{{ site.url }}/{{ site.image }}" />
43+
<meta name="twitter:image:src" content="{{ site.url }}/{{ site.image }}" />
44+
{% endif %}

0 commit comments

Comments
 (0)