feat: settings type and defaults
Co-Authored-By: Claude
This commit is contained in:
26
src/settings.ts
Normal file
26
src/settings.ts
Normal 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: "",
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user