Skip to content

Commit 21e562c

Browse files
committed
feat(*): add og
1 parent 2372b57 commit 21e562c

File tree

8 files changed

+12
-3
lines changed

8 files changed

+12
-3
lines changed

.tool-versions

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
nodejs 20
2+
bun 1.1.27

bun.lockb

936 Bytes
Binary file not shown.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"preview": "turbo run preview",
1313
"check": "turbo run check",
1414
"www": "bun --filter www run",
15+
"postinstall": "bun run build --filter='@atmx-org/*'",
1516
"cli": "bun --filter cli run",
1617
"common": "bun --filter common run"
1718
},

www/astro.config.ts

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export default defineConfig({
2727
integrations: [
2828
starlight({
2929
title: "ATMX",
30+
description: "Utilities, React hooks, and more in a single command.",
3031
customCss: [
3132
"@fontsource-variable/inter",
3233
"@fontsource/geist-mono",
@@ -75,6 +76,7 @@ export default defineConfig({
7576
Header: "./src/components/Header.astro",
7677
ContentPanel: "./src/components/ContentPanel.astro",
7778
Hero: "./src/components/Hero.astro",
79+
Head: "./src/components/Head.astro",
7880
},
7981
}),
8082
tailwind({

www/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"@radix-ui/react-tabs": "^1.1.0",
3636
"@rehype-pretty/transformers": "^0.13.2",
3737
"astro": "^4.14.5",
38+
"astro-seo": "^0.8.4",
3839
"class-variance-authority": "^0.7.0",
3940
"clsx": "^2.1.1",
4041
"cmdk": "1.0.0",

www/public/og.jpg

2.51 MB
Loading

www/src/components/Head.astro

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
---
2-
// import { ViewTransitions } from "astro:transitions";
2+
import type { Props } from "@astrojs/starlight/props";
3+
import Default from "@astrojs/starlight/components/Head.astro";
34
---
45

5-
<!-- <ViewTransitions /> -->
6+
<Default {...Astro.props}><slot /></Default>
7+
8+
<meta property="og:image" content={new URL("/og.jpg", Astro.url)} />
9+
<meta name="twitter:image" content={new URL("/og.jpg", Astro.url)} />

www/src/pages/index.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
import StarlightPage from "@astrojs/starlight/components/StarlightPage.astro";
33
---
44

5-
<StarlightPage frontmatter={{ hero: {}, template: "splash", title: "" }} />
5+
<StarlightPage frontmatter={{ hero: {}, template: "splash", title: "Home" }} />

0 commit comments

Comments
 (0)