diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index 33ce850b..59c5cdaa 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -14,7 +14,7 @@ export default { title: 'Yoga', tagline: 'Build flexible layouts on any platform with a highly optimized open source layout engine designed with speed, size, and ease of use in mind.', - favicon: 'img/favicon.png', + favicon: 'img/favicon.svg', url: 'https:/yogalayout.dev', baseUrl: '/', @@ -95,5 +95,19 @@ export default { defaultMode: 'dark', respectPrefersColorScheme: true, }, + metadata: [ + { + property: 'og:image', + content: 'https://yogalayout.dev/img/opengraph.jpg', + }, + { + property: 'og:image:width', + content: '1200', + }, + { + property: 'og:image:height', + content: '630', + }, + ], }), }; diff --git a/website/src/pages/index.tsx b/website/src/pages/index.tsx index 6f6833f6..3cc1de0d 100644 --- a/website/src/pages/index.tsx +++ b/website/src/pages/index.tsx @@ -76,7 +76,7 @@ function PlaygroundSection() { export default function Home(): JSX.Element { return ( - + diff --git a/website/static/img/favicon.png b/website/static/img/favicon.png deleted file mode 100644 index 178f2730..00000000 Binary files a/website/static/img/favicon.png and /dev/null differ diff --git a/website/static/img/favicon.svg b/website/static/img/favicon.svg new file mode 100644 index 00000000..10f6a007 --- /dev/null +++ b/website/static/img/favicon.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + diff --git a/website/static/img/opengraph.jpg b/website/static/img/opengraph.jpg new file mode 100644 index 00000000..e520dd1b Binary files /dev/null and b/website/static/img/opengraph.jpg differ