1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-21 06:01:17 -04:00

prepare for new next/link behavior

see new-next-link branch
This commit is contained in:
2022-04-28 12:32:50 -04:00
parent ad1d1bbce1
commit e1da53a1fe
9 changed files with 13 additions and 16 deletions

View File

@@ -1,5 +1,5 @@
import { ErrorBoundary } from "react-error-boundary";
import Link from "next/link";
import NextLink from "next/link";
import Time from "../Time";
import HitCounter from "../HitCounter";
import NoteTitle from "../NoteTitle";
@@ -62,7 +62,7 @@ const NoteMeta = ({ slug, date, title, htmlTitle, tags = [] }: NoteMetaProps) =>
<>
<Wrapper>
<MetaItem>
<Link
<NextLink
href={{
pathname: "/notes/[slug]/",
query: { slug },
@@ -75,7 +75,7 @@ const NoteMeta = ({ slug, date, title, htmlTitle, tags = [] }: NoteMetaProps) =>
</span>
<Time date={date} format="MMMM D, YYYY" />
</MetaLink>
</Link>
</NextLink>
</MetaItem>
{tags.length > 0 && (