Skip to content

Commit 3e6298f

Browse files
committed
Revert "Add turbo, remove view-transitions"
This reverts commit 3d19d5a.
1 parent d9e989e commit 3e6298f

5 files changed

Lines changed: 3 additions & 22 deletions

File tree

package-lock.json

Lines changed: 0 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"@astrojs/mdx": "^3.1.2",
1818
"@astrojs/rss": "^4.0.11",
1919
"@astrojs/sitemap": "^3.4.1",
20-
"@hotwired/turbo": "^8.0.20",
2120
"astro": "^4.11.5",
2221
"markdown-it": "^14.1.0",
2322
"prettier": "^3.3.2",

src/env.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
/// <reference path="../.astro/types.d.ts" />
22
/// <reference types="astro/client" />
3-
4-
declare module "@hotwired/turbo";

src/layouts/BaseLayout.astro

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const {
77
publishedAt,
88
tags,
99
} = Astro.props.frontmatter || Astro.props;
10+
import { ViewTransitions } from "astro:transitions";
1011
import Footer from "../components/Footer.astro";
1112
import NavLink from "../components/NavLink.astro";
1213
@@ -46,7 +47,6 @@ const structuredData = {
4647
keywords: tags.join(", "),
4748
}),
4849
};
49-
5050
---
5151

5252
<html lang="en">
@@ -92,6 +92,7 @@ const structuredData = {
9292
set:html={JSON.stringify(structuredData)}
9393
/>
9494

95+
<ViewTransitions />
9596
<style>
9697
* {
9798
box-sizing: border-box;
@@ -206,13 +207,6 @@ const structuredData = {
206207

207208
<Footer />
208209

209-
<script>
210-
import * as Turbo from "@hotwired/turbo";
211-
212-
Turbo.setProgressBarDelay(100);
213-
Turbo.start();
214-
</script>
215-
216210
<script>
217211
function makeTablesResponsive() {
218212
const tables = document.querySelectorAll("table");

src/pages/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const projects = await getCollection("projects");
4141
productivity that Rails brings to development.
4242
</p>
4343

44-
<nav class="actions" aria-label="Quick navigation" data-turbo-prefetch="true">
44+
<nav class="actions" aria-label="Quick navigation">
4545
<ul>
4646
<li><a href="/about" class="button">About Me</a></li>
4747
<li><a href="/projects" class="button">View Projects</a></li>

0 commit comments

Comments
 (0)