Skip to content

Commit 3368080

Browse files
authored
Merge pull request #3 from yanthomasdev/sitemap-open-graph
Add open graph images and sitemap
2 parents 4b08912 + 0ff66c9 commit 3368080

File tree

14 files changed

+506
-31
lines changed

14 files changed

+506
-31
lines changed

astro.config.mjs

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,26 @@
11
import remarkAsides from "#scripts/asides.js";
22
import mdx from "@astrojs/mdx";
3+
import sitemap from "@astrojs/sitemap";
34
import expressiveCode from "astro-expressive-code";
4-
import { defineConfig, fontProviders } from "astro/config";
5+
import { defineConfig } from "astro/config";
56
import remarkDirective from "remark-directive";
67

78
// https://astro.build/config
89
export default defineConfig({
910
site: "https://yanthomas.dev",
11+
trailingSlash: "always",
1012
integrations: [
1113
expressiveCode({
1214
themes: ["catppuccin-macchiato"],
1315
styleOverrides: {
1416
borderRadius: "0",
15-
uiFontFamily: "var(--font-space-mono)",
17+
uiFontFamily: "'Space Mono', monospace",
1618
uiFontSize: "var(--font-size--2)",
17-
codeFontFamily: "var(--font-space-mono)",
19+
codeFontFamily: "'Space Mono', monospace",
1820
codeFontSize: "var(--font-size--2)",
1921
},
2022
}),
23+
sitemap(),
2124
mdx(),
2225
],
2326
markdown: {
@@ -31,14 +34,5 @@ export default defineConfig({
3134
contentIntellisense: true,
3235
svgo: true,
3336
clientPrerender: true,
34-
fonts: [{
35-
provider: fontProviders.google(),
36-
name: "Space Mono",
37-
cssVariable: "--font-space-mono",
38-
weights: ["400", "700"],
39-
styles: ["normal", "italic"],
40-
subsets: ["latin"],
41-
fallbacks: ["monospace"],
42-
}],
4337
},
4438
});

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,15 @@
1515
"dependencies": {
1616
"@astrojs/check": "^0.9.6",
1717
"@astrojs/mdx": "^4.3.12",
18+
"@astrojs/sitemap": "^3.6.0",
19+
"@fontsource/space-mono": "^5.2.9",
1820
"astro": "^5.16.4",
1921
"astro-expressive-code": "^0.38.3",
2022
"hastscript": "^9.0.1",
2123
"remark-directive": "^3.0.1",
24+
"satori-astro": "^0.3.1",
25+
"satori-html": "^0.3.2",
26+
"sharp": "^0.34.5",
2227
"typescript": "^5.9.3",
2328
"unist-util-visit": "^5.0.0"
2429
},

0 commit comments

Comments
 (0)