diff options
| author | aspizu <aspizu@protonmail.com> | 2025-03-10 04:12:38 +0530 |
|---|---|---|
| committer | aspizu <aspizu@protonmail.com> | 2025-03-10 04:12:38 +0530 |
| commit | b04c5eb7f783f8f83931fc8b479fd8aa45d7c00c (patch) | |
| tree | 359cb03abc6ef394e0095c59448f7cc4c4369e10 /src/index.ts | |
| parent | 1656bbef4ac09f60d901c372617312888dd147d9 (diff) | |
feat: update README and package.json for version 0.3.0; add titleFormat option to GemtextConfig
Diffstat (limited to 'src/index.ts')
| -rw-r--r-- | src/index.ts | 5 |
1 files changed, 5 insertions, 0 deletions
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"> & { |
