Skip to content

Commit

Permalink
Revert "prefetch-intent"
Browse files Browse the repository at this point in the history
This reverts commit 601571e.
  • Loading branch information
bitbloxhub committed Jul 23, 2023
1 parent 601571e commit c1d9793
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 22 deletions.
4 changes: 1 addition & 3 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@ import { defineConfig } from "astro/config"
import svelte from "@astrojs/svelte"
import UnoCSS from "unocss/astro"
import mdx from "@astrojs/mdx"
import prefetch from "@astrojs/prefetch"

// https://astro.build/config
export default defineConfig({
site: "https://bitbloxhub.github.io",
integrations: [
svelte(),
UnoCSS(),
mdx(),
prefetch()
mdx()
],
experimental: {
viewTransitions: true
Expand Down
17 changes: 0 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
},
"dependencies": {
"@astrojs/mdx": "^0.19.7",
"@astrojs/prefetch": "^0.3.0",
"@astrojs/rss": "^2.4.3",
"@astrojs/svelte": "^3.1.0",
"astro": "^2.9.1",
Expand Down
1 change: 1 addition & 0 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const { title } = Astro.props
<meta name="generator" content={Astro.generator} />
<title>{title}</title>
<ViewTransitions />
<script src="https://instant.page/5.2.0" type="module" />
</head>
<body transition:animate="morph" class="dark:bg-black dark:text-white">
<Header />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/blog.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const pageTitle = "bitbloxhub's blog"
<main class="m-auto p-6 max-w-6xl text-left">
<h1>bitbloxhub's blog!</h1>
<ul class="text-base">
{allPosts.map((post) => <li ><a href={post.url} rel="prefetch-intent">{post.frontmatter.title}</a></li>)}
{allPosts.map((post) => <li ><a href={post.url}>{post.frontmatter.title}</a></li>)}
</ul>
</main>
</Layout>

0 comments on commit c1d9793

Please sign in to comment.