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

enable experimental next/future/image (#973)

This commit is contained in:
2022-06-27 20:45:02 -04:00
committed by GitHub
parent a4602335a1
commit f826f59fcc
14 changed files with 183 additions and 184 deletions

View File

@@ -1,4 +1,4 @@
import NextLink from "next/link";
import Link from "../Link";
import Time from "../Time";
import HitCounter from "../HitCounter";
import NoteTitle from "../NoteTitle";
@@ -21,9 +21,8 @@ const MetaItem = styled("div", {
whiteSpace: "nowrap",
});
const MetaLink = styled(NextLink, {
const MetaLink = styled(Link, {
color: "inherit",
textDecoration: "none",
});
const Icon = styled("svg", {
@@ -67,6 +66,7 @@ const NoteMeta = ({ slug, date, title, htmlTitle, tags = [] }: NoteMetaProps) =>
pathname: "/notes/[slug]/",
query: { slug },
}}
underline={false}
>
<span>
<Icon as={DateIcon} />
@@ -93,9 +93,8 @@ const NoteMeta = ({ slug, date, title, htmlTitle, tags = [] }: NoteMetaProps) =>
<MetaItem>
<MetaLink
href={`https://github.com/${config.githubRepo}/blob/main/notes/${slug}.mdx`}
target="_blank"
rel="noopener noreferrer"
title={`Edit "${title}" on GitHub`}
underline={false}
>
<span>
<Icon as={EditIcon} />