diff --git a/astro.config.mjs b/astro.config.mjs index cf26a0f..dac80bb 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,7 +1,7 @@ import { defineConfig } from "astro/config"; // https://astro.build/config -import tailwind from "@astrojs/tailwind"; +import tailwindcss from "@tailwindcss/vite"; // https://astro.build/config import partytown from "@astrojs/partytown"; @@ -9,8 +9,10 @@ import { remarkReadingTime } from "./remark-reading-time.mjs"; // https://astro.build/config export default defineConfig({ + vite: { + plugins: [tailwindcss()], + }, integrations: [ - tailwind(), partytown({ config: { forward: ["dataLayer.push"], diff --git a/bun.lockb b/bun.lockb index 4627a4b..c1ad233 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 2ff6c65..6d48c61 100644 --- a/package.json +++ b/package.json @@ -15,29 +15,30 @@ "prepare": "husky" }, "dependencies": { - "@astrojs/partytown": "^2.1.2", - "@astrojs/tailwind": "^5.1.3", - "astro": "^4.16.17", + "@astrojs/partytown": "^2.1.3", + "@fontsource-variable/roboto-mono": "^5.1.1", + "@tailwindcss/vite": "^4.0.8", + "astro": "^5.3.1", "mdast-util-to-string": "^4.0.0", "reading-time": "^1.5.0", - "tailwindcss": "^3.4.16" + "tailwindcss": "^4.0.8" }, "devDependencies": { - "@commitlint/cli": "^19.6.1", - "@commitlint/config-conventional": "^19.6.0", - "@eslint/js": "^9.17.0", - "@tailwindcss/typography": "^0.5.15", - "@typescript-eslint/parser": "^8.18.1", - "astro-eslint-parser": "^1.1.0", - "eslint": "^9.17.0", + "@commitlint/cli": "^19.7.1", + "@commitlint/config-conventional": "^19.7.1", + "@eslint/js": "^9.21.0", + "@tailwindcss/typography": "^0.5.16", + "@typescript-eslint/parser": "^8.25.0", + "astro-eslint-parser": "^1.2.1", + "eslint": "^9.21.0", "eslint-plugin-astro": "^1.3.1", "husky": "^9.1.7", - "prettier": "^3.4.2", + "prettier": "^3.5.2", "prettier-plugin-astro": "^0.14.1", - "prettier-plugin-tailwindcss": "^0.6.9", + "prettier-plugin-tailwindcss": "^0.6.11", "rehype-katex": "^7.0.1", - "rehype-mathjax": "^6.0.0", + "rehype-mathjax": "^7.1.0", "remark-math": "^6.0.0", - "typescript-eslint": "^8.18.1" + "typescript-eslint": "^8.25.0" } } diff --git a/public/favicon.svg b/public/favicon.svg index 0f39062..399bd1c 100644 --- a/public/favicon.svg +++ b/public/favicon.svg @@ -1,13 +1,8 @@ - - - - - - - - - - + + + + + + + diff --git a/src/components/Announcement.astro b/src/components/Announcement.astro index fd07686..4b5baea 100644 --- a/src/components/Announcement.astro +++ b/src/components/Announcement.astro @@ -14,7 +14,7 @@ const { announcement } = Astro.props;

{announcement.data.description}

-
+
diff --git a/src/components/BlogPost.astro b/src/components/BlogPost.astro index 82c5542..a5f54ff 100644 --- a/src/components/BlogPost.astro +++ b/src/components/BlogPost.astro @@ -1,12 +1,13 @@ --- import type { CollectionEntry } from "astro:content"; import { formatDate } from "../utils"; +import { render } from "astro:content"; interface Props { post: CollectionEntry<"blog">; } const { post } = Astro.props; -const { remarkPluginFrontmatter } = await post.render(); +const { remarkPluginFrontmatter } = await render(post); ---
@@ -21,7 +22,7 @@ const { remarkPluginFrontmatter } = await post.render(); {remarkPluginFrontmatter.readingTime}
@@ -36,7 +37,7 @@ const { remarkPluginFrontmatter } = await post.render();
If you have any questions or comments, or you would like to point out any errors in any of the blog posts, please reach out to me at - + {post.data.title} {formatDate(post.data.pubDate)} diff --git a/src/components/LatestBlogPost.astro b/src/components/LatestBlogPost.astro index ece7ec7..b72f75b 100644 --- a/src/components/LatestBlogPost.astro +++ b/src/components/LatestBlogPost.astro @@ -11,7 +11,7 @@ const { post } = Astro.props;
postsposts
diff --git a/src/components/Navbar.astro b/src/components/Navbar.astro index 9c20ada..189f152 100644 --- a/src/components/Navbar.astro +++ b/src/components/Navbar.astro @@ -6,7 +6,7 @@ import ArrowUpRight from "./ArrowUpRight.astro"; aria-label="Navigation bar" class="sticky top-0 z-10 bg-gray-50 py-4 dark:bg-[#0a0a0a]" > -