From ac5a1f0529644c849c7c4a57c7b610c194d23f92 Mon Sep 17 00:00:00 2001 From: aspizu Date: Mon, 10 Mar 2025 04:15:52 +0530 Subject: feat: bump version to 0.3.1 and set default titleFormat in gemtext config --- src/index.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/index.ts b/src/index.ts index beacb56..83db082 100644 --- a/src/index.ts +++ b/src/index.ts @@ -24,6 +24,9 @@ type SetupHookParams = HookParameters<"astro:config:setup"> & { } export default function gemtext(config: GemtextConfig = {}): AstroIntegration { + if (!config.titleFormat) { + config.titleFormat = "first-heading" + } return { name: "astro-gemtext", hooks: { -- cgit v1.2.3