Skip to content

Commit dc9d199

Browse files
Removed some meta tags from app file (#70)
1 parent f4cf8ba commit dc9d199

4 files changed

Lines changed: 35 additions & 20 deletions

File tree

components/pages/blog/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,10 @@ export default function BlogPage({ posts }) {
366366
content="The CodeEdit blog is the source for news about CodeEdit. Read project news, get updates, and read about community progress."
367367
></meta>
368368
<meta property="og:url" content="https://www.codeedit.app/blog"></meta>
369+
<meta
370+
property="og:image"
371+
content="https://www.codeedit.app/social-preview.jpg"
372+
></meta>
369373
</Head>
370374
<Section contained gutterY variant="secondary">
371375
<Typography variant="section-head" as="h2">

components/pages/home/index.js

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,34 @@ import CtaSection from './sections/CtaSection';
1111

1212
import SampleStorySection from './sections/SampleStorySection';
1313
import links from '@/data/links';
14+
import Head from 'next/head';
1415

1516
export default function HomePage({ versionNumber }) {
1617
return (
17-
<div>
18+
<>
19+
<Head>
20+
<meta
21+
property="og:description"
22+
content="A lightweight, natively built editor. Open source. Free forever."
23+
></meta>
24+
<meta
25+
property="og:title"
26+
content="CodeEdit – A native code editor for macOS"
27+
></meta>
28+
<meta
29+
property="og:image"
30+
content="https://www.codeedit.app/social-preview.jpg"
31+
></meta>
32+
<meta
33+
property="og:description"
34+
content="A lightweight, natively built editor. Open source. Free forever."
35+
></meta>
36+
<meta property="og:url" content="https://www.codeedit.app"></meta>
37+
</Head>
1838
<Ribbon onClick={() => window.open(links.githubProject)}>
1939
CodeEdit is currently in development. Check out the roadmap.
2040
</Ribbon>
21-
<HeroSection versionNumber={versionNumber}/>
41+
<HeroSection versionNumber={versionNumber} />
2242
<IntroFeaturesSection />
2343
{/* <SampleStorySection /> */}
2444
{/* <SampleStorySection /> */}
@@ -28,6 +48,6 @@ export default function HomePage({ versionNumber }) {
2848
<SectionDivider contained /> */}
2949
{/* <SocialSection /> */}
3050
{/* <CtaSection /> */}
31-
</div>
51+
</>
3252
);
3353
}

components/pages/whats-new/index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ export default function WhatsNewPage({ releases }) {
4545
content="The CodeEdit blog is the source for news about CodeEdit. Read project news, get updates, and read about community progress."
4646
></meta>
4747
<meta property="og:url" content="https://www.codeedit.app/blog"></meta>
48+
<meta
49+
property="og:description"
50+
content="A lightweight, natively built editor. Open source. Free forever."
51+
></meta>
52+
<meta
53+
property="og:image"
54+
content="https://www.codeedit.app/social-preview.jpg"
55+
></meta>
4856
</Head>
4957
<HeroSection contained gutterY={12}>
5058
<Typography variant="headline-elevated" as="h1">

pages/_app.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,6 @@ function MyApp({ Component, pageProps }) {
1313
name="viewport"
1414
content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no, user-scalable=no, viewport-fit=cover"
1515
/>
16-
<meta
17-
property="og:description"
18-
content="A lightweight, natively built editor. Open source. Free forever."
19-
></meta>
20-
<meta
21-
property="og:title"
22-
content="CodeEdit – A native code editor for macOS"
23-
></meta>
24-
<meta
25-
property="og:image"
26-
content="https://www.codeedit.app/social-preview.jpg"
27-
></meta>
28-
<meta
29-
property="og:description"
30-
content="A lightweight, natively built editor. Open source. Free forever."
31-
></meta>
32-
<meta property="og:url" content="https://www.codeedit.app"></meta>
3316
<meta
3417
name="twitter:image"
3518
content="https://www.codeedit.app/social-preview.jpg"

0 commit comments

Comments
 (0)