Remove the default date formatting

This commit is contained in:
2026-08-09 14:28:17 -04:00
parent 87d27f2f4c
commit e4117a3d28
7 changed files with 20 additions and 20 deletions

View File

@@ -1,6 +1,6 @@
import { parseNote, Pair } from "./frontmatter";
import { buildPost } from "./buildPost";
import { postFilename } from "./slug";
import { pageFilename } from "./slug";
import { findImageRefs, planImages, Strategy } from "./images";
import { GitClient, GitFile } from "./git";
import { JekyllPublishSettings } from "./settings";
@@ -9,7 +9,7 @@ export interface PublishInput {
noteText: string;
frontmatterPairs: Pair[];
slug: string;
date: string;
date?: string;
strategy: Strategy;
commitMessage: string;
}
@@ -51,7 +51,7 @@ export async function publish(
});
const postText = buildPost({ frontmatterPairs: input.frontmatterPairs, body: rewrittenBody });
const notePath = `${settings.defaultPublishDir}/${postFilename({ date: input.date, slug: input.slug })}`;
const notePath = `${settings.publishDir}/${pageFilename({ date: input.date, slug: input.slug })}`;
const files: GitFile[] = [{ repoPath: notePath, data: postText }];
for (const item of plan) {