Skip to content

Commit

Permalink
fix blog tests???
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Feb 14, 2024
1 parent 6d26f5c commit 84a13d1
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions packages/docusaurus-plugin-content-blog/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,16 +257,13 @@ export default async function pluginContentBlog(
),
);

const blogMetadata: BlogMetadata = {
blogBasePath: normalizeUrl([baseUrl, routeBasePath]),
blogTitle,
};
const blogMetadataPath = await createData(
`blogMetadata-${pluginId}.json`,
JSON.stringify(
{
blogBasePath: normalizeUrl([baseUrl, routeBasePath]),
blogTitle,
} satisfies BlogMetadata,
null,
2,
),
JSON.stringify(blogMetadata, null, 2),
);

// Create routes for blog entries.
Expand Down

0 comments on commit 84a13d1

Please sign in to comment.