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

move default next-seo config to clean up _app.tsx

This commit is contained in:
2022-02-01 20:35:40 -05:00
parent c4e212f6de
commit 11f05c3b0a
5 changed files with 153 additions and 126 deletions

View File

@@ -9,6 +9,7 @@ import Comments from "../../components/Comments/Comments";
import * as mdxComponents from "../../lib/mdx-components";
import { getNote, getNoteSlugs } from "../../lib/parse-notes";
import * as config from "../../lib/config";
import { articleJsonLd } from "../../lib/seo";
import type { GetStaticProps, GetStaticPaths } from "next";
import type { NoteType } from "../../types";
@@ -47,9 +48,7 @@ const Note = ({ frontMatter, source }: NoteType) => {
datePublished={frontMatter.date}
dateModified={frontMatter.date}
images={frontMatter.image && [`${config.baseUrl}${frontMatter.image}`]}
authorName={[config.authorName]}
publisherName={config.siteName}
publisherLogo={`${config.baseUrl}/static/images/me.jpg`}
{...articleJsonLd}
/>
<NoteMeta slug={frontMatter.slug} date={frontMatter.date} title={frontMatter.title} tags={frontMatter.tags} />