mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-06-19 13:15:31 -04:00
re-enable comments on non-post pages
This commit is contained in:
+3
-1
@@ -14,7 +14,6 @@ import {
|
||||
remarkStripMdxImportsExports,
|
||||
} from "@/lib/remark";
|
||||
import { rehypeSanitize, rehypeStringify } from "@/lib/rehype";
|
||||
import { POSTS_DIR } from "@/lib/config/constants";
|
||||
|
||||
export type FrontMatter = {
|
||||
slug: string;
|
||||
@@ -28,6 +27,9 @@ export type FrontMatter = {
|
||||
noComments?: boolean;
|
||||
};
|
||||
|
||||
/** Path to directory with .mdx files, relative to project root. */
|
||||
export const POSTS_DIR = "notes" as const;
|
||||
|
||||
/** Use filesystem to get a simple list of all post slugs */
|
||||
export const getSlugs = cache(async (): Promise<string[]> => {
|
||||
// list all .mdx files in POSTS_DIR
|
||||
|
||||
Reference in New Issue
Block a user