Skip to content

Commit 31ff5d3

Browse files
committed
@hotwired/turbo
1 parent d4796fc commit 31ff5d3

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

.ignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bun.lock

bun.lock

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"@astrojs/sitemap": "^3.2.1",
99
"@astrojs/svelte": "^7.0.6",
1010
"@date-fns/tz": "^1.2.0",
11+
"@hotwired/turbo": "^8.0.13",
1112
"@iconify-json/feather": "^1.2.1",
1213
"@tailwindcss/typography": "^0.5.16",
1314
"astro": "^5.4.2",
@@ -24,6 +25,7 @@
2425
"@biomejs/biome": "^1.9.4",
2526
"@tailwindcss/vite": "^4.0.12",
2627
"@types/bun": "^1.2.4",
28+
"@types/hotwired__turbo": "^8.0.4",
2729
"lefthook": "^1.11.3",
2830
"prettier": "^3.5.3",
2931
"prettier-plugin-astro": "^0.14.1",
@@ -164,6 +166,8 @@
164166

165167
"@floating-ui/utils": ["@floating-ui/[email protected]", "", {}, "sha512-MDWhGtE+eHw5JW7lq4qhc5yRLS11ERl1c7Z6Xd0a58DozHES6EnNNwUWbMiG4J9Cgj053Bhk8zvlhFYKVhULwg=="],
166168

169+
"@hotwired/turbo": ["@hotwired/[email protected]", "", {}, "sha512-M7qXUqcGab6G5PKOiwhgbByTtrPgKPFCTMNQ52QhzUEXEqmp0/ApEguUesh/FPiUjrmFec+3lq98KsWnYY2C7g=="],
170+
167171
"@iconify-json/feather": ["@iconify-json/[email protected]", "", { "dependencies": { "@iconify/types": "*" } }, "sha512-gURNg2TJYuO1U7DoOGCylm9TwkMfzjOH2BHdWsE0IXLXj/MNkFIJu56Wu1xRws27M8hzDzUDt/biGUa/LfAjdg=="],
168172

169173
"@iconify/tools": ["@iconify/[email protected]", "", { "dependencies": { "@iconify/types": "^2.0.0", "@iconify/utils": "^2.2.0", "@types/tar": "^6.1.13", "axios": "^1.7.9", "cheerio": "1.0.0", "domhandler": "^5.0.3", "extract-zip": "^2.0.1", "local-pkg": "^0.5.1", "pathe": "^1.1.2", "svgo": "^3.3.2", "tar": "^6.2.1" } }, "sha512-Hybu/HGhv6T8nLQhiG9rKx+ekF7NNpPOEQAy7JRSKht3s3dcFSsPccYzk24Znc9MTxrR6Gak3cg6CPP5dyvS2Q=="],
@@ -340,6 +344,8 @@
340344

341345
"@types/hast": ["@types/[email protected]", "", { "dependencies": { "@types/unist": "*" } }, "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ=="],
342346

347+
"@types/hotwired__turbo": ["@types/[email protected]", "", {}, "sha512-kgEKOms0taywPxPQvXUh90+G7M+phBHTiUw95Dosw0FU/we86iFerMfgBGcf3eQcAGs5pTNYnLMhiIlfRw/AfA=="],
348+
343349
"@types/mdast": ["@types/[email protected]", "", { "dependencies": { "@types/unist": "*" } }, "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA=="],
344350

345351
"@types/mdx": ["@types/[email protected]", "", {}, "sha512-+OWZQfAYyio6YkJb3HLxDrvnx6SWWDbC0zVPfBRzUk0/nqoDyf6dNxQi3eArPe8rJ473nobTMQ/8Zk+LxJ+Yuw=="],

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"@astrojs/sitemap": "^3.2.1",
2727
"@astrojs/svelte": "^7.0.6",
2828
"@date-fns/tz": "^1.2.0",
29+
"@hotwired/turbo": "^8.0.13",
2930
"@iconify-json/feather": "^1.2.1",
3031
"@tailwindcss/typography": "^0.5.16",
3132
"astro": "^5.4.2",
@@ -42,6 +43,7 @@
4243
"@biomejs/biome": "^1.9.4",
4344
"@tailwindcss/vite": "^4.0.12",
4445
"@types/bun": "^1.2.4",
46+
"@types/hotwired__turbo": "^8.0.4",
4547
"lefthook": "^1.11.3",
4648
"prettier": "^3.5.3",
4749
"prettier-plugin-astro": "^0.14.1",

src/components/ArticleList.astro

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ const articlesWithExcerpts = await Promise.all(
5656
const imageWidth = baseW * (isFeatured ? 2 : 1);
5757
const imageHeight = baseW * (3 / 5) * (isFeatured ? 2 : 1);
5858

59-
console.log(article.data.bg_color);
60-
6159
article.data.fit ??= "cover";
6260
article.data.position ??= "center";
6361

src/layouts/GlobalLayout.astro

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
import { ClientRouter } from "astro:transitions";
32
import Footer from "+/components/Footer.astro";
43
import Header from "+/components/Header.astro";
54
import Logo from "+/images/favicon.png";
@@ -25,6 +24,8 @@ const { title, description, focus, image } = Astro.props;
2524
<Header {focus} />
2625
<slot />
2726
<Footer />
28-
<ClientRouter />
27+
<script>
28+
import "@hotwired/turbo";
29+
</script>
2930
</body>
3031
</html>

0 commit comments

Comments
 (0)