feat: settings type and defaults

Co-Authored-By: Claude
This commit is contained in:
2026-06-19 01:58:14 +00:00
parent bf7f993026
commit d41cbc467e

26
src/settings.ts Normal file
View File

@@ -0,0 +1,26 @@
import { Strategy } from "./images";
import { Pair } from "./frontmatter";
export interface JekyllPublishSettings {
remoteUrl: string;
branch: string;
postsDir: string;
imagesDir: string;
defaultImageStrategy: Strategy;
presetFrontmatter: Pair[];
commitMessageTemplate: string;
authorName: string;
authorEmail: string;
}
export const DEFAULT_SETTINGS: JekyllPublishSettings = {
remoteUrl: "",
branch: "main",
postsDir: "_posts",
imagesDir: "assets/img",
defaultImageStrategy: "flat-slug",
presetFrontmatter: [],
commitMessageTemplate: "Publish: {{title}}",
authorName: "",
authorEmail: "",
};