From b04c5eb7f783f8f83931fc8b479fd8aa45d7c00c Mon Sep 17 00:00:00 2001 From: aspizu Date: Mon, 10 Mar 2025 04:12:38 +0530 Subject: feat: update README and package.json for version 0.3.0; add titleFormat option to GemtextConfig --- src/index.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/index.ts') diff --git a/src/index.ts b/src/index.ts index 2068d0f..beacb56 100644 --- a/src/index.ts +++ b/src/index.ts @@ -9,6 +9,11 @@ export interface GemtextConfig { /** Absolute import path to the layout to use for all gemtext pages. * If not provided, HMR and the Astro toolbar will not work. (default: none) */ layout?: string + /** The format to use for the page title. Can be one of: + * - `first-heading`: The first heading in the document will be used as the title. (default) + * - `filename`: The filename of the document will be used as the title. + */ + titleFormat?: "first-heading" | "filename" } type SetupHookParams = HookParameters<"astro:config:setup"> & { -- cgit v1.2.3