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

test new next/link behavior

This commit is contained in:
2022-05-17 18:31:58 -04:00
parent a2f4112e06
commit d1f0030d3c
8 changed files with 37 additions and 60 deletions

View File

@@ -22,7 +22,7 @@ const MetaItem = styled("div", {
whiteSpace: "nowrap",
});
const MetaLink = styled("a", {
const MetaLink = styled(NextLink, {
color: "inherit",
textDecoration: "none",
});
@@ -62,20 +62,17 @@ const NoteMeta = ({ slug, date, title, htmlTitle, tags = [] }: NoteMetaProps) =>
<>
<Wrapper>
<MetaItem>
<NextLink
<MetaLink
href={{
pathname: "/notes/[slug]/",
query: { slug },
}}
passHref={true}
>
<MetaLink>
<span>
<Icon as={DateIcon} />
</span>
<Time date={date} format="MMMM D, YYYY" />
</MetaLink>
</NextLink>
<span>
<Icon as={DateIcon} />
</span>
<Time date={date} format="MMMM D, YYYY" />
</MetaLink>
</MetaItem>
{tags.length > 0 && (