personal website

update packages, make blog pages prerender

Changed files
+10 -9
.netlify
src
pages
+1
.netlify/v1/config.json
··· 1 + {"images":{"remote_images":[]},"headers":[{"for":"/_astro/*","values":{"Cache-Control":"public, max-age=31536000, immutable"}}]}
bun.lockb

This is a binary file and will not be displayed.

+7 -7
package.json
··· 11 11 }, 12 12 "dependencies": { 13 13 "@astrojs/check": "^0.9.4", 14 - "@astrojs/mdx": "^3.1.8", 14 + "@astrojs/mdx": "^3.1.9", 15 15 "@astrojs/netlify": "^5.5.4", 16 - "@astrojs/svelte": "^5.7.2", 16 + "@astrojs/svelte": "^5.7.3", 17 17 "@astrojs/tailwind": "^5.1.2", 18 - "@iconify-json/tabler": "^1.2.5", 19 - "@sveltejs/vite-plugin-svelte": "^4.0.0-next.6", 20 - "astro": "^4.16.6", 21 - "astro-icon": "^1.1.1", 22 - "svelte": "^5.0.3", 18 + "@iconify-json/tabler": "^1.2.7", 19 + "@sveltejs/vite-plugin-svelte": "^4.0.0", 20 + "astro": "^4.16.11", 21 + "astro-icon": "^1.1.2", 22 + "svelte": "^5.1.16", 23 23 "tailwindcss": "^3.4.14", 24 24 "typescript": "^5.6.3" 25 25 },
+2 -2
src/pages/blog/[...slug].astro
··· 7 7 blog : CollectionEntry<'blog'> 8 8 } 9 9 10 + export const prerender = true; 10 11 export const getStaticPaths = (async () => { 11 12 const blogs = await getCollection("blog"); 12 13 return blogs.map((blog: CollectionEntry<"blog">) => { ··· 17 18 }) satisfies GetStaticPaths; 18 19 19 20 const { blog } = Astro.props; 20 - 21 21 const { Content } = await blog.render(); 22 22 --- 23 23 24 24 <SiteLayout> 25 - <main class="flex flex-col gap-4 w-full py-8"> 25 + <main class="flex flex-col gap-4 w-full py-8 px-4"> 26 26 <article class="prose prose-invert w-full max-w-6xl prose-code:text-purple-400"> 27 27 <h1 class="text-yellow-500">{blog.data.title}</h1> 28 28 <p class="text-yellow-500">{blog.data.description}</p>