Remove the default date formatting
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user