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

refactor .js files to ES modules where possible

This commit is contained in:
2024-03-12 14:58:00 -04:00
parent e66dc37c41
commit e1a26d5257
28 changed files with 460 additions and 414 deletions

View File

@@ -2,7 +2,7 @@ import { NextSeo } from "next-seo";
import Content from "../../components/Content";
import PostsList from "../../components/PostsList";
import { getAllPosts } from "../../lib/helpers/posts";
import { authorName } from "../../lib/config";
import config from "../../lib/config";
import type { GetStaticProps, InferGetStaticPropsType } from "next";
import type { PostsByYear } from "../../types";
@@ -11,7 +11,7 @@ const Notes = ({ notesByYear }: InferGetStaticPropsType<typeof getStaticProps>)
<>
<NextSeo
title="Notes"
description={`Recent posts by ${authorName}.`}
description={`Recent posts by ${config.authorName}.`}
openGraph={{
title: "Notes",
}}