Skip to content

Commit

Permalink
fix all links to prefetch
Browse files Browse the repository at this point in the history
  • Loading branch information
loxs committed Jan 4, 2023
1 parent 9c39cc2 commit 2abe610
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
%sveltekit.head%
</head>
<body class="bg-base-100">
<body class="bg-base-100" data-sveltekit-preload-data="hover">
<div>%sveltekit.body%</div>
</body>
</html>
4 changes: 1 addition & 3 deletions src/lib/components/NavBarLink.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@

<a
href={navUrl}
data-sveltekit-preload-data="hover"
class="btn btn-secondary rounded-full no-animation
hover:bg-secondary-focus text-secondary-content normal-case
class="btn btn-secondary rounded-full no-animation hover:bg-secondary-focus text-secondary-content normal-case
{currentPath === navUrl ? 'btn-active' : 'btn-ghost'}"
>
{text}
Expand Down

0 comments on commit 2abe610

Please sign in to comment.