Skip to content

Commit bd6244a

Browse files
Merge pull request #285 from HaudinFlorence/add-opengraph-headtags
Add Opengraph headtags.
2 parents 47ab3d3 + eae9498 commit bd6244a

File tree

1 file changed

+23
-8
lines changed

1 file changed

+23
-8
lines changed

docusaurus.config.ts

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,7 @@ const config: Config = {
6767
]
6868
],
6969

70-
71-
themeConfig: {
72-
// Replace with your project's social card
73-
//image: 'img/docusaurus-social-card.jpg',
74-
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
75-
headTags: [
76-
70+
headTags: [
7771
{
7872
tagName: 'link',
7973
attributes: {
@@ -83,7 +77,28 @@ const config: Config = {
8377
href: '/atom.xml',
8478
},
8579
},
80+
{ tagName: 'meta',
81+
attributes: {
82+
property: 'og:title',
83+
content: 'Open-source for discovery, science, and education',
84+
},
85+
},
86+
{ tagName: 'meta',
87+
attributes: {
88+
property: 'og:image',
89+
content: '/img/quantstack/astronaut.svg',
90+
},
91+
},
92+
{ tagName: 'meta',
93+
attributes: {
94+
property: 'og:description',
95+
content: 'A team behind major open-source projects of the scientific computing ecosystem such as Jupyter, Conda-Forge, Mamba, XTensor/SIMD, Apache Arrow/Parquet and more.',
96+
},
97+
},
8698
],
99+
100+
themeConfig: {
101+
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
87102
navbar: {
88103
title: "",
89104
logo: {
@@ -126,7 +141,7 @@ const config: Config = {
126141
to: "/fundable/",
127142
label: "Fundable projects",
128143
position: "right",
129-
className:"fundable_projects"
144+
className: "fundable_projects"
130145
},
131146
{
132147
to: "/contact/",

0 commit comments

Comments
 (0)