feat: set default layout in gemtext function if not provided
This commit is contained in:
+1
-1
@@ -15,7 +15,7 @@ type SetupHookParams = HookParameters<"astro:config:setup"> & {
|
|||||||
addContentEntryType: (contentEntryType: ContentEntryType) => void
|
addContentEntryType: (contentEntryType: ContentEntryType) => void
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function gemtext(config: GemtextConfig): AstroIntegration {
|
export default function gemtext(config: GemtextConfig = {}): AstroIntegration {
|
||||||
if (!config.layout) {
|
if (!config.layout) {
|
||||||
config.layout = "/src/layouts/Layout.astro"
|
config.layout = "/src/layouts/Layout.astro"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user