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 9286792 commit 2b9011eCopy full SHA for 2b9011e
scripts/generate-changelog.js
@@ -24,13 +24,18 @@ for (const file of files) {
24
const { data } = matter(content);
25
26
if (data.title && data.date) {
27
+ const pathname = file
28
+ .replace('.mdx', '')
29
+ .replace('(posts)/', '')
30
+ .replace(/\/page$/, '');
31
+
32
changelogRecords.push({
33
date: new Date(data.date).toLocaleDateString(undefined, {
34
day: 'numeric',
35
month: 'long',
36
year: 'numeric',
37
}),
- href: `https://the-guild.dev/graphql/hive/product-updates/${file.replace('.mdx', '')}`,
38
+ href: `https://the-guild.dev/graphql/hive/product-updates/${pathname}`,
39
title: data.title,
40
description: data.description || '',
41
});
0 commit comments