diff options
| author | aspizu <aspizu@protonmail.com> | 2025-03-10 03:27:04 +0530 |
|---|---|---|
| committer | aspizu <aspizu@protonmail.com> | 2025-03-10 03:27:04 +0530 |
| commit | 067cda9660c55107477f476ee1819486e7de8a6a (patch) | |
| tree | 1574230af3de472f3aa9cb3384231a5e5e58d1d2 /src/index.ts | |
| parent | 27f03906e593304a05249e8bab1ac7fee1578f20 (diff) | |
feat: set default layout in gemtext function if not provided
Diffstat (limited to 'src/index.ts')
| -rw-r--r-- | src/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.ts b/src/index.ts index 8bbb51b..215b033 100644 --- a/src/index.ts +++ b/src/index.ts @@ -15,7 +15,7 @@ type SetupHookParams = HookParameters<"astro:config:setup"> & { addContentEntryType: (contentEntryType: ContentEntryType) => void } -export default function gemtext(config: GemtextConfig): AstroIntegration { +export default function gemtext(config: GemtextConfig = {}): AstroIntegration { if (!config.layout) { config.layout = "/src/layouts/Layout.astro" } |
