Skip to content

Commit dcf43b2

Browse files
committed
feat: add og metadata tags
1 parent 9cbb3e6 commit dcf43b2

File tree

2 files changed

+33
-10
lines changed

2 files changed

+33
-10
lines changed

src/components/SeoHead.tsx

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import React from 'react';
2+
import Head from '@docusaurus/Head';
3+
4+
export default function SeoHead() {
5+
const title = "Windmill | Open-source developer platform and workflow engine";
6+
const description = "Turn scripts into auto-generated UIs, APIs and cron jobs. Compose them as workflows or data pipelines. Build complex, data-intensive apps with ease. Write and deploy software 10x faster, and run it with the highest reliability and observability on the fastest self-hostable job orchestrator";
7+
const url = "https://www.windmill.dev/";
8+
const image = "https://foskey51.github.io/test_ogp/og_image.png";
9+
10+
return (
11+
<Head>
12+
<title>{title}</title>
13+
14+
<meta name="title" content={title} />
15+
<meta name="description" content={description} />
16+
17+
<meta property="og:url" content={url} />
18+
<meta property="og:type" content="website" />
19+
<meta property="og:title" content={title} />
20+
<meta property="og:description" content={description} />
21+
<meta property="og:image" content={image} />
22+
23+
<meta name="twitter:card" content="summary_large_image" />
24+
<meta name="twitter:title" content={title} />
25+
<meta name="twitter:description" content={description} />
26+
<meta name="twitter:image" content={image} />
27+
28+
<link rel="icon" href="/img/logo.svg" />
29+
</Head>
30+
);
31+
}

src/pages/index.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import IntegrationsList from '../landing/IntegrationsList';
55
import LandingSection from '../landing/LandingSection';
66
import CallToAction from '../landing/CallToAction';
77
import EntrepriseFeatures from '../landing/EntrepriseFeatures';
8-
import Head from '@docusaurus/Head';
98
import HeroExample from '../landing/HeroExample';
109
import LandingHeader from '../landing/LandingHeader';
1110
import LayoutProvider from '@theme/Layout/Provider';
@@ -16,6 +15,7 @@ import AppLightSection from '../landing/AppLightSection';
1615
import FlowLightSection from '../landing/FlowLightSection';
1716
import TutorialSection from '../landing/TutorialSection';
1817
import MobileTutorialSection from '../landing/MobileTutorialSection';
18+
import SeoHead from '../components/SeoHead';
1919

2020
function HomepageHeader() {
2121
return (
@@ -49,15 +49,7 @@ export default function Home() {
4949
return (
5050
<LayoutProvider>
5151
<main>
52-
<Head>
53-
<title>Windmill | Open-source developer platform and workflow engine</title>
54-
<meta name="title" content="Open-source developer platform and workflow engine" />
55-
<meta
56-
name="description"
57-
content="Turn scripts into auto-generated UIs, APIs and cron jobs. Compose them as workflows or data pipelines. Build complex, data-intensive apps with ease. Write and deploy software 10x faster, and run it with the highest reliability and observability on the fastest self-hostable job orchestrator"
58-
/>
59-
<link rel="icon" href="/img/logo.svg" />
60-
</Head>
52+
<SeoHead />
6153
<HomepageHeader />
6254
</main>
6355
</LayoutProvider>

0 commit comments

Comments
 (0)