Skip to content

Commit 47926e1

Browse files
authored
Meta tags (#35)
* add seo meta tags
1 parent 22e9ac1 commit 47926e1

File tree

2 files changed

+109
-0
lines changed

2 files changed

+109
-0
lines changed

src/img/datastax-docs-banner.png

137 KB
Loading

src/partials/head-meta.hbs

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,110 @@
11
{{!-- Add additional meta tags here --}}
2+
3+
{{!-- apple touch icon --}}
4+
{{!-- <link rel="apple-touch-icon" sizes="180x180" href="https://www.datastax.com/en/astra/_/img/apple-touch-icon-180x180.png"> --}}
5+
<link rel="icon" href="https://www.datastax.com/favicon.ico">
6+
<meta property="article:published_time" content="{{page.localdate}}">
7+
<meta property="article:modified_time" content="{{page.docdate}}">
8+
<meta property="article:author" content="DataStax">
9+
{{!-- og --}}
10+
<meta property="og:site_name" content="DataStax Documentation">
11+
<meta property="og:type" content="article">
12+
<meta property="og:url" content="{{page.canonicalUrl}}">
13+
<meta property="og:title" content="{{page.title}} :: {{site.title}}">
14+
<meta property="og:description" content="{{page.description}}">
15+
<meta property="og:image" content="https://docs.datastax.com/en/astra/_/img/datastax-docs-banner.png">
16+
<meta property="og:image:type" content="image/png">
17+
<meta property="og:image:width" content="1200">
18+
<meta property="og:image:height" content="628">
19+
<meta property="og:image:alt" content="DataStax Documentation">
20+
{{!-- twitter --}}
21+
<meta name="twitter:card" content="summary_large_image">
22+
<meta name="twitter:site" content="@datastax">
23+
<meta name="twitter:creator" content="@datastax">
24+
<meta name="twitter:url" content="{{page.canonicalUrl}}">
25+
<meta name="twitter:title" content="{{page.title}} :: {{site.title}}">
26+
<meta name="twitter:description" content="{{page.description}}">
27+
<meta name="twitter:image" content="https://docs.datastax.com/en/astra/_/img/datastax-docs-banner.png">
28+
<script type="application/ld+json">
29+
[
30+
{{!-- {{commented expressions}} --}}
31+
{{#if (eq "https://docs.datastax.com/en/astra/home/astra.html" page.canonicalUrl)}}
32+
{
33+
"@context": "https://schema.org",
34+
"@type": "WebSite",
35+
"@id": "https://docs.datastax.com",
36+
"name": "DataStax Documentation",
37+
"url": "{{page.canonicalUrl}}",
38+
"image": "https://docs.datastax.com/en/astra/_/img/datastax-docs-banner.png",
39+
"sameAs": [
40+
"https://github.com/datastaxdevs/",
41+
"https://twitter.com/datastaxdevs",
42+
"https://datastax.medium.com/"
43+
],
44+
"potentialAction": {
45+
"@type": "SearchAction",
46+
"target": "https://www.datastax.com/search?dataset=docs&query={search_term}",
47+
"query-input": "required name=search_term"
48+
},
49+
"Publisher":{
50+
"@type": "Corporation",
51+
"@id": "https://datastax.com#organization",
52+
"name": "DataStax",
53+
"url": "https://datastax.com"
54+
},
55+
"Author":{
56+
"@type": "Corporation",
57+
"@id": "https://datastax.com#organization",
58+
"name": "DataStax"
59+
}
60+
},
61+
{{else}}
62+
{
63+
"@context": "https://schema.org",
64+
"@type": "WebPage",
65+
"@id": "{{page.canonicalUrl}}",
66+
"name":"{{page.title}}",
67+
"inLanguage":"en-US",
68+
"reviewedBy":{
69+
"@type": "Corporation",
70+
"@id": "https://datastax.com#organization",
71+
"name": "DataStax"
72+
},
73+
"author":{
74+
"@type": "Corporation",
75+
"@id": "https://datastax.com#organization",
76+
"name": "DataStax"
77+
},
78+
"isPartOf": {
79+
"@type": "WebSite",
80+
"@id": "https://docs.datastax.com",
81+
"name": "DataStax Documentation"
82+
},
83+
"mainEntity":
84+
{
85+
"@type":"TechArticle",
86+
"@id": "{{page.canonicalUrl}}#main_content",
87+
"mainEntityOfPage": "true",
88+
"datePublished":"{{page.localdate}}",
89+
"dateModified":"{{page.docdate}}",
90+
"headline": "{{page.title}}",
91+
"description":"{{page.description}}",
92+
"keywords":"{{page.keywords}}",
93+
"image": "https://docs.datastax.com/en/astra/_/img/datastax-docs-banner.png",
94+
"publisher":{
95+
"@type": "Corporation",
96+
"@id": "https://datastax.com#organization",
97+
"name": "DataStax",
98+
"url": "https://datastax.com"
99+
},
100+
"author":{
101+
"@type": "Corporation",
102+
"@id": "https://datastax.com#organization",
103+
"name": "DataStax",
104+
"url": "https://datastax.com"
105+
}
106+
}
107+
}
108+
{{/if}}
109+
]
110+
</script>

0 commit comments

Comments
 (0)