feat: update README and package.json for version 0.3.0; add titleFormat option to GemtextConfig

This commit is contained in:
aspizu
2025-03-10 04:12:38 +05:30
parent 1656bbef4a
commit b04c5eb7f7
4 changed files with 44 additions and 7 deletions
+5
View File
@@ -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"> & {