Skip to content

Commit 351ba4d

Browse files
authored
Merge pull request #12 from milan-codes/dev
Astro 5
2 parents 0872519 + f4fb38a commit 351ba4d

23 files changed

Lines changed: 65 additions & 59 deletions

astro.config.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
import { defineConfig } from "astro/config";
22

33
// https://astro.build/config
4-
import tailwind from "@astrojs/tailwind";
4+
import tailwindcss from "@tailwindcss/vite";
55

66
// https://astro.build/config
77
import partytown from "@astrojs/partytown";
88
import { remarkReadingTime } from "./remark-reading-time.mjs";
99

1010
// https://astro.build/config
1111
export default defineConfig({
12+
vite: {
13+
plugins: [tailwindcss()],
14+
},
1215
integrations: [
13-
tailwind(),
1416
partytown({
1517
config: {
1618
forward: ["dataLayer.push"],

bun.lockb

-34.4 KB
Binary file not shown.

package.json

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,30 @@
1515
"prepare": "husky"
1616
},
1717
"dependencies": {
18-
"@astrojs/partytown": "^2.1.2",
19-
"@astrojs/tailwind": "^5.1.3",
20-
"astro": "^4.16.17",
18+
"@astrojs/partytown": "^2.1.3",
19+
"@fontsource-variable/roboto-mono": "^5.1.1",
20+
"@tailwindcss/vite": "^4.0.8",
21+
"astro": "^5.3.1",
2122
"mdast-util-to-string": "^4.0.0",
2223
"reading-time": "^1.5.0",
23-
"tailwindcss": "^3.4.16"
24+
"tailwindcss": "^4.0.8"
2425
},
2526
"devDependencies": {
26-
"@commitlint/cli": "^19.6.1",
27-
"@commitlint/config-conventional": "^19.6.0",
28-
"@eslint/js": "^9.17.0",
29-
"@tailwindcss/typography": "^0.5.15",
30-
"@typescript-eslint/parser": "^8.18.1",
31-
"astro-eslint-parser": "^1.1.0",
32-
"eslint": "^9.17.0",
27+
"@commitlint/cli": "^19.7.1",
28+
"@commitlint/config-conventional": "^19.7.1",
29+
"@eslint/js": "^9.21.0",
30+
"@tailwindcss/typography": "^0.5.16",
31+
"@typescript-eslint/parser": "^8.25.0",
32+
"astro-eslint-parser": "^1.2.1",
33+
"eslint": "^9.21.0",
3334
"eslint-plugin-astro": "^1.3.1",
3435
"husky": "^9.1.7",
35-
"prettier": "^3.4.2",
36+
"prettier": "^3.5.2",
3637
"prettier-plugin-astro": "^0.14.1",
37-
"prettier-plugin-tailwindcss": "^0.6.9",
38+
"prettier-plugin-tailwindcss": "^0.6.11",
3839
"rehype-katex": "^7.0.1",
39-
"rehype-mathjax": "^6.0.0",
40+
"rehype-mathjax": "^7.1.0",
4041
"remark-math": "^6.0.0",
41-
"typescript-eslint": "^8.18.1"
42+
"typescript-eslint": "^8.25.0"
4243
}
4344
}

public/favicon.svg

Lines changed: 7 additions & 12 deletions
Loading

src/components/Announcement.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const { announcement } = Astro.props;
1414
<h1 class="text-gray-600 dark:text-gray-400">
1515
{announcement.data.description}
1616
</h1>
17-
<div class="prose my-8 text-gray-600 dark:prose-invert dark:text-gray-400">
17+
<div class="prose dark:prose-invert my-8 text-gray-600 dark:text-gray-400">
1818
<slot />
1919
</div>
2020
</div>

src/components/BlogPost.astro

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
---
22
import type { CollectionEntry } from "astro:content";
33
import { formatDate } from "../utils";
4+
import { render } from "astro:content";
45
56
interface Props {
67
post: CollectionEntry<"blog">;
78
}
89
const { post } = Astro.props;
9-
const { remarkPluginFrontmatter } = await post.render();
10+
const { remarkPluginFrontmatter } = await render(post);
1011
---
1112

1213
<div>
@@ -21,7 +22,7 @@ const { remarkPluginFrontmatter } = await post.render();
2122
{remarkPluginFrontmatter.readingTime}
2223
</h1>
2324
<div
24-
class="prose my-8 max-w-none text-gray-600 dark:prose-invert dark:text-gray-400"
25+
class="prose dark:prose-invert my-8 max-w-none text-gray-600 dark:text-gray-400"
2526
>
2627
<slot />
2728
</div>
@@ -36,7 +37,7 @@ const { remarkPluginFrontmatter } = await post.render();
3637
</ul>
3738
<hr />
3839
<div
39-
class="prose my-8 max-w-none text-gray-600 dark:prose-invert dark:text-gray-400"
40+
class="prose dark:prose-invert my-8 max-w-none text-gray-600 dark:text-gray-400"
4041
>
4142
If you have any questions or comments, or you would like to point out any
4243
errors in any of the blog posts, please reach out to me at <a

src/components/BlogPostCard.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const { post } = Astro.props;
1111
<div
1212
class="my-2 flex items-center justify-between text-gray-600 dark:text-gray-400"
1313
>
14-
<a class="hover:underline" href={`/blog/${post.slug}`}>
14+
<a class="hover:underline" href={`/blog/${post.id}`}>
1515
{post.data.title}
1616
</a>
1717
{formatDate(post.data.pubDate)}

src/components/LatestBlogPost.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const { post } = Astro.props;
1111
<div class="my-4">
1212
<a
1313
href="/blog"
14-
class="lowercase text-gray-900 hover:underline dark:text-gray-100">posts</a
14+
class="text-gray-900 lowercase hover:underline dark:text-gray-100">posts</a
1515
>
1616
<BlogPostCard post={post} />
1717
</div>

src/components/Navbar.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import ArrowUpRight from "./ArrowUpRight.astro";
66
aria-label="Navigation bar"
77
class="sticky top-0 z-10 bg-gray-50 py-4 dark:bg-[#0a0a0a]"
88
>
9-
<ul class="flex gap-4 font-medium lowercase text-gray-900 dark:text-gray-100">
9+
<ul class="flex gap-4 font-medium text-gray-900 lowercase dark:text-gray-100">
1010
<li>
1111
<a class="py-2 hover:underline" href="/"> Home </a>
1212
</li>

src/components/Projects.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ const projects: Project[] = [
4545
---
4646

4747
<div class="my-8">
48-
<h1 class="lowercase text-gray-900 dark:text-gray-100">Projects</h1>
48+
<h1 class="text-gray-900 lowercase dark:text-gray-100">Projects</h1>
4949
{projects.map((project) => <ProjectCard project={project} />)}
5050
</div>

0 commit comments

Comments
 (0)