-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhead-meta.hbs
110 lines (109 loc) · 4.34 KB
/
head-meta.hbs
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
{{!-- Add additional meta tags here --}}
{{!-- apple touch icon --}}
{{!-- <link rel="apple-touch-icon" sizes="180x180" href="https://www.datastax.com/en/astra/_/img/apple-touch-icon-180x180.png"> --}}
<link rel="icon" href="https://www.datastax.com/favicon.ico">
<meta property="article:published_time" content="{{page.localdate}}">
<meta property="article:modified_time" content="{{page.docdate}}">
<meta property="article:author" content="DataStax">
{{!-- og --}}
<meta property="og:site_name" content="DataStax Documentation">
<meta property="og:type" content="article">
<meta property="og:url" content="{{page.canonicalUrl}}">
<meta property="og:title" content="{{> head-title}}">
<meta property="og:description" content="{{page.description}}">
<meta property="og:image" content="{{{site.url}}}{{{site.ui.url}}}/img/datastax-docs-banner.png">
<meta property="og:image:type" content="image/png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="628">
<meta property="og:image:alt" content="DataStax Documentation">
{{!-- twitter --}}
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@datastax">
<meta name="twitter:creator" content="@datastax">
<meta name="twitter:url" content="{{page.canonicalUrl}}">
<meta name="twitter:title" content="{{> head-title}}">
<meta name="twitter:description" content="{{page.description}}">
<meta name="twitter:image" content="{{{site.url}}}{{{site.ui.url}}}/img/datastax-docs-banner.png">
<script type="application/ld+json">
[
{{!-- {{commented expressions}} --}}
{{#if (eq "{{{site.url}}}{{{site.homeUrl}}}" page.canonicalUrl)}}
{
"@context": "https://schema.org",
"@type": "WebSite",
"@id": "https://docs.datastax.com",
"name": "DataStax Documentation",
"url": "{{page.canonicalUrl}}",
"image": "{{{site.url}}}{{{site.ui.url}}}/img/datastax-docs-banner.png",
"sameAs": [
"https://github.com/datastaxdevs/",
"https://twitter.com/datastaxdevs",
"https://datastax.medium.com/"
],
"potentialAction": {
"@type": "SearchAction",
"target": "https://www.datastax.com/search?dataset=docs&query={search_term}",
"query-input": "required name=search_term"
},
"Publisher":{
"@type": "Corporation",
"@id": "https://datastax.com#organization",
"name": "DataStax",
"url": "https://datastax.com"
},
"Author":{
"@type": "Corporation",
"@id": "https://datastax.com#organization",
"name": "DataStax"
}
},
{{else}}
{
"@context": "https://schema.org",
"@type": "WebPage",
"@id": "{{page.canonicalUrl}}",
"name":"{{page.title}}",
"inLanguage":"en-US",
"reviewedBy":{
"@type": "Corporation",
"@id": "https://datastax.com#organization",
"name": "DataStax"
},
"author":{
"@type": "Corporation",
"@id": "https://datastax.com#organization",
"name": "DataStax"
},
"isPartOf": {
"@type": "WebSite",
"@id": "https://docs.datastax.com",
"name": "DataStax Documentation"
},
"mainEntity":
{
"@type":"TechArticle",
"@id": "{{page.canonicalUrl}}#main_content",
"mainEntityOfPage": "true",
"datePublished":"{{page.localdate}}",
"dateModified":"{{page.docdate}}",
"headline": "{{page.title}}",
"description":"{{page.description}}",
"keywords":"{{page.keywords}}",
"image": "{{{site.url}}}{{{site.ui.url}}}/img/datastax-docs-banner.png",
"publisher":{
"@type": "Corporation",
"@id": "https://datastax.com#organization",
"name": "DataStax",
"url": "https://datastax.com"
},
"author":{
"@type": "Corporation",
"@id": "https://datastax.com#organization",
"name": "DataStax",
"url": "https://datastax.com"
}
}
}
{{/if}}
]
</script>