refactor .js files to ES modules where possible

This commit is contained in:
jake committed 2024-03-12 14:58:00 -04:00
1 parent e66dc37c41
commit e1a26d5257
28 files changed
+460 -414

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ import PostMeta from "../../components/PostMeta";
import Comments from "../../components/Comments";
import * as mdxComponents from "../../lib/helpers/mdx-components";
import { getPostSlugs, compilePost } from "../../lib/helpers/posts";
import * as config from "../../lib/config";
import config from "../../lib/config";
import { articleJsonLd } from "../../lib/config/seo";
import { meJpg } from "../../lib/config/favicons";
import type { GetStaticProps, GetStaticPaths, InferGetStaticPropsType } from "next";
+2 -2
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",
}}