Skip to content

Commit

Permalink
Meta tags (#35)
Browse files Browse the repository at this point in the history
* add seo meta tags
  • Loading branch information
josuebran authored Nov 7, 2023
1 parent 22e9ac1 commit 47926e1
Show file tree
Hide file tree
Showing 2 changed files with 109 additions and 0 deletions.
Binary file added src/img/datastax-docs-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
109 changes: 109 additions & 0 deletions src/partials/head-meta.hbs
Original file line number Diff line number Diff line change
@@ -1 +1,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="{{page.title}} :: {{site.title}}">
<meta property="og:description" content="{{page.description}}">
<meta property="og:image" content="https://docs.datastax.com/en/astra/_/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="{{page.title}} :: {{site.title}}">
<meta name="twitter:description" content="{{page.description}}">
<meta name="twitter:image" content="https://docs.datastax.com/en/astra/_/img/datastax-docs-banner.png">
<script type="application/ld+json">
[
{{!-- {{commented expressions}} --}}
{{#if (eq "https://docs.datastax.com/en/astra/home/astra.html" page.canonicalUrl)}}
{
"@context": "https://schema.org",
"@type": "WebSite",
"@id": "https://docs.datastax.com",
"name": "DataStax Documentation",
"url": "{{page.canonicalUrl}}",
"image": "https://docs.datastax.com/en/astra/_/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": "https://docs.datastax.com/en/astra/_/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>

0 comments on commit 47926e1

Please sign in to comment.