mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-03 14:46:37 -04:00
less resource-intensive methods of parsing URLs
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
import { InView } from "react-intersection-observer";
|
||||
import { NextSeo, ArticleJsonLd } from "next-seo";
|
||||
import { MDXRemote } from "next-mdx-remote";
|
||||
import urlJoin from "url-join";
|
||||
import Content from "../../components/Content";
|
||||
import NoteMeta from "../../components/NoteMeta";
|
||||
import Comments from "../../components/Comments";
|
||||
@ -31,7 +30,7 @@ const Note = ({ frontMatter, source }: Note) => {
|
||||
},
|
||||
images: frontMatter.image && [
|
||||
{
|
||||
url: urlJoin(config.baseUrl, frontMatter.image),
|
||||
url: `${config.baseUrl}${frontMatter.image}`,
|
||||
alt: frontMatter.title,
|
||||
},
|
||||
],
|
||||
@ -46,7 +45,7 @@ const Note = ({ frontMatter, source }: Note) => {
|
||||
description={frontMatter.description}
|
||||
datePublished={frontMatter.date}
|
||||
dateModified={frontMatter.date}
|
||||
images={frontMatter.image && [urlJoin(config.baseUrl, frontMatter.image)]}
|
||||
images={frontMatter.image && [`${config.baseUrl}${frontMatter.image}`]}
|
||||
{...articleJsonLd}
|
||||
/>
|
||||
|
||||
|
Reference in New Issue
Block a user