diff --git a/src/settings.ts b/src/settings.ts new file mode 100644 index 0000000..96c296f --- /dev/null +++ b/src/settings.ts @@ -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: "", +};