Skip to content

Commit 31ff5d3

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

5 files changed

Lines changed: 12 additions & 4 deletions

File tree

.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
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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)