We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec95e1b commit dbc2455Copy full SHA for dbc2455
docusaurus.config.js
@@ -193,12 +193,12 @@ module.exports = {
193
mermaid: true,
194
parseFrontMatter: async (params) => {
195
const result = await params.defaultParseFrontMatter(params);
196
-
197
- const ogImageURL = new URL('https://apify.com/og-image/docs-article');
198
199
- ogImageURL.searchParams.set('title', result.frontMatter.title);
200
- result.frontMatter.image ??= ogImageURL.toString();
201
+ const isPartial = filePath.split('/').pop()[0] === '_';
+ if (!isPartial) {
+ const ogImageURL = new URL('https://apify.com/og-image/docs-article');
+ ogImageURL.searchParams.set('title', frontMatter.title);
+ frontMatter.image ??= ogImageURL.toString();
+ }
202
return result;
203
},
204
0 commit comments