feat: bump version to 0.3.1 and set default titleFormat in gemtext config
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "astro-gemtext",
|
"name": "astro-gemtext",
|
||||||
"homepage": "https://github.com/aspizu/astro-gemtext",
|
"homepage": "https://github.com/aspizu/astro-gemtext",
|
||||||
"version": "0.3.0",
|
"version": "0.3.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
|||||||
@@ -24,6 +24,9 @@ type SetupHookParams = HookParameters<"astro:config:setup"> & {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default function gemtext(config: GemtextConfig = {}): AstroIntegration {
|
export default function gemtext(config: GemtextConfig = {}): AstroIntegration {
|
||||||
|
if (!config.titleFormat) {
|
||||||
|
config.titleFormat = "first-heading"
|
||||||
|
}
|
||||||
return {
|
return {
|
||||||
name: "astro-gemtext",
|
name: "astro-gemtext",
|
||||||
hooks: {
|
hooks: {
|
||||||
|
|||||||
Reference in New Issue
Block a user