summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraspizu <aspizu@protonmail.com>2025-03-10 04:15:52 +0530
committeraspizu <aspizu@protonmail.com>2025-03-10 04:15:52 +0530
commitac5a1f0529644c849c7c4a57c7b610c194d23f92 (patch)
tree0876a643454b5b777799bd14ba6143373eda5b55
parentb04c5eb7f783f8f83931fc8b479fd8aa45d7c00c (diff)
feat: bump version to 0.3.1 and set default titleFormat in gemtext config
-rw-r--r--package.json2
-rw-r--r--src/index.ts3
2 files changed, 4 insertions, 1 deletions
diff --git a/package.json b/package.json
index 7a0c6e5..f29ede9 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "astro-gemtext",
"homepage": "https://github.com/aspizu/astro-gemtext",
- "version": "0.3.0",
+ "version": "0.3.1",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
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: {