mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-07-20 00:25:56 -04:00
refactor "notes" into "posts" (only on the backend)
This commit is contained in:
Vendored
+1
-1
@@ -1,3 +1,3 @@
|
||||
export * from "./note";
|
||||
export * from "./post";
|
||||
export * from "./project";
|
||||
export * from "./stats";
|
||||
|
||||
Vendored
+6
-6
@@ -1,6 +1,6 @@
|
||||
import type { MDXRemoteSerializeResult } from "next-mdx-remote";
|
||||
|
||||
export type NoteFrontMatter = {
|
||||
export type PostFrontMatter = {
|
||||
slug: string;
|
||||
permalink: string;
|
||||
date: string;
|
||||
@@ -12,14 +12,14 @@ export type NoteFrontMatter = {
|
||||
noComments?: boolean;
|
||||
};
|
||||
|
||||
export type NoteWithSource = {
|
||||
export type PostWithSource = {
|
||||
// yaml metadata
|
||||
frontMatter: NoteFrontMatter;
|
||||
frontMatter: PostFrontMatter;
|
||||
|
||||
// the final, compiled JSX by next-mdx-remote; see lib/helpers/parse-notes.ts
|
||||
// the final, compiled JSX by next-mdx-remote; see lib/helpers/posts.ts
|
||||
source: Partial<Pick<MDXRemoteSerializeResult<Record<string, never>, Record<string, never>>>>;
|
||||
};
|
||||
|
||||
export type NotesByYear = {
|
||||
[year: string]: NoteFrontMatter[];
|
||||
export type PostsByYear = {
|
||||
[year: string]: PostFrontMatter[];
|
||||
};
|
||||
Reference in New Issue
Block a user