Skip to content

Commit 5bb3720

Browse files
committed
404 fixes
1 parent fe7666c commit 5bb3720

File tree

7 files changed

+99
-42
lines changed

7 files changed

+99
-42
lines changed

content/changelog/CHANGELOG.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,59 @@
11
# Change Log
22

3+
## [10.2.0] - 2024-xx-xx
4+
5+
### ✨ New features
6+
7+
- [#797](https://github.com/estruyf/vscode-front-matter/issues/797): Adding common actions at the bottom of the snippet cards
8+
9+
### 🎨 Enhancements
10+
11+
- [#799](https://github.com/estruyf/vscode-front-matter/issues/799): Added `frontMatter.logging` setting to define the logging output. Options are `info`, `warn`, `error`, and `verbose`. Default is `info`.
12+
- [#800](https://github.com/estruyf/vscode-front-matter/issues/800): Add colors for the Front Matter CMS output
13+
14+
### ⚡️ Optimizations
15+
16+
### 🐞 Fixes
17+
18+
- [#796](https://github.com/estruyf/vscode-front-matter/issues/796): Fix issue in retrieving folders/files on dashboard load
19+
- [#801](https://github.com/estruyf/vscode-front-matter/issues/801): Faster folder processing on updates
20+
21+
## [10.1.0] - 2024-04-11 - [Release notes](https://beta.frontmatter.codes/updates/v10.1.0)
22+
23+
### ✨ New features
24+
25+
- [#671](https://github.com/estruyf/vscode-front-matter/issues/671): Command bar for contents and media dashboard
26+
27+
### 🎨 Enhancements
28+
29+
- [#773](https://github.com/estruyf/vscode-front-matter/issues/773): Added the ability to rename content files
30+
- [#777](https://github.com/estruyf/vscode-front-matter/issues/777): Show an error in the metadata panel if something went wrong while parsing the front matter
31+
- [#778](https://github.com/estruyf/vscode-front-matter/issues/778): Added the ability to open a file or webpage when custom scripts is completed
32+
- [#783](https://github.com/estruyf/vscode-front-matter/issues/783): Always show the custom panel view
33+
- [#785](https://github.com/estruyf/vscode-front-matter/issues/785): Adding common actions at the bottom of the content and media cards
34+
- [#787](https://github.com/estruyf/vscode-front-matter/issues/787): Support for glob patterns in the page folder paths
35+
- [#790](https://github.com/estruyf/vscode-front-matter/pull/790): Updated Japanese translations thanks to [mayumihara](https://github.com/mayumih387)
36+
37+
### 🐞 Fixes
38+
39+
- [#716](https://github.com/estruyf/vscode-front-matter/issues/716): Fix `dataFile` dropdown class
40+
- [#768](https://github.com/estruyf/vscode-front-matter/issues/768): Update broken link to the documentation
41+
- [#771](https://github.com/estruyf/vscode-front-matter/issues/771): Fix lowercase `data` tab label
42+
- [#782](https://github.com/estruyf/vscode-front-matter/issues/782): Fix for setting the correct view when inserting media or snippets
43+
- [#786](https://github.com/estruyf/vscode-front-matter/issues/786): Remove on startup as VSCode now triggers on known commands
44+
45+
## [10.0.2] - 2024-03-01
46+
47+
### 🐞 Fixes
48+
49+
- [#769](https://github.com/estruyf/vscode-front-matter/issues/769): Fix to remove internal properties for content folders
50+
51+
## [10.0.1] - 2024-02-28
52+
53+
### 🐞 Fixes
54+
55+
- [#766](https://github.com/estruyf/vscode-front-matter/issues/766): Fix for snippet placeholder retrieval
56+
357
## [10.0.0] - 2024-02-28 - [Release notes](https://beta.frontmatter.codes/updates/v10.0.0)
458

559
### ✨ New features

content/changelog/v10.0.0.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Version 10.0.0 release notes
33
description: Version 10.0.0 of our CMS introduces the much-awaited feature of multilingual support, enabling you to handle content in various languages, new taxonomy view, media content types, and more.
44
date: 2024-02-28T10:48:53.569Z
5-
lastmod: 2024-04-11T14:28:29.944Z
5+
lastmod: 2024-04-30T08:04:02.332Z
66
slug: v10.0.0
77
type: changelog
88
---
@@ -26,7 +26,7 @@ We added a new taxonomy view action that allows you to tag/untag taxonomy to mul
2626

2727
![Tag your taxonomy](/releases/v10.0.0/taxonomy-tagging.webp)
2828

29-
> **Info**: More information can be found in the [taxonomy documentation](/docs/taxonomy-view#tag-content).
29+
> **Info**: More information can be found in the [taxonomy documentation](/docs/dashboard/taxonomy-view#tag-content).
3030
3131
## Media Content Types
3232

content/changelog/v4_0_0.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
title: Version 4.0.0 release notes
3-
description: 'In this new major release of Front Matter, we got some great new features to announce to you.'
4-
date: '2021-09-20T11:51:43.926Z'
5-
lastmod: '2021-09-22T08:00:43.170Z'
3+
description: In this new major release of Front Matter, we got some great new features to announce to you.
4+
date: 2021-09-20T11:51:43.926Z
5+
lastmod: 2024-04-30T08:04:33.782Z
66
---
77

88
## Team level settings
@@ -37,7 +37,7 @@ A CMS won't be complete if it doesn't allow you to define your own content types
3737

3838
![Define your own content types](/releases/v4_0_0/content-type.png)
3939

40-
> **Info**: Find out more on our new content type support in the [content creation section](docs/content-creation).
40+
> **Info**: Find out more on our new content type support in the [content creation section](/docs/content-creation).
4141
4242
### Supported field types
4343

content/changelog/v8.2.0.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Version 8.2.0 release notes
33
description: Check out the features/enhancements/fixes that we packed in version 8.2.0 of Front Matter.
44
date: 2022-12-08T15:45:51.509Z
5-
lastmod: 2024-02-22T12:25:46.273Z
5+
lastmod: 2024-04-30T08:08:50.695Z
66
type: changelog
77
alias:
88
- release-notes-v8.1
@@ -35,7 +35,7 @@ The `frontMatter.content.pageFolders` setting has two new properties which can b
3535

3636
Single data entry files are now supported. This means that you can now have a data file that contains a single entry, instead of an array of entries.
3737

38-
> **Info**: For more info, check out the [Data files](/doc/dashboard/datafiles-view#creating-a-data-file) documentation.
38+
> **Info**: For more info, check out the [Data files](/docs/dashboard/datafiles-view#creating-a-data-file) documentation.
3939
4040
## Improved UX for inserting media files to your content
4141

content/docs/content-creation/content-folders.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Content folders
33
slug: content-creation/content-folders
44
description: Learn how to let Front Matter CMS know where to find and create your content
55
date: 2024-02-21T09:10:16.640Z
6-
lastmod: 2024-04-11T15:12:19.769Z
6+
lastmod: 2024-04-30T08:06:48.062Z
77
weight: 200.11
88
---
99

@@ -120,7 +120,7 @@ and clicking on `Register folder` under the Front Matter CMS context menu.
120120
121121
<!-- Links -->
122122

123-
[01]: "/docs/getting-started#step-3:-register-content-folder(s)"
123+
[01]: /docs/getting-started#step-3:-register-content-folder(s)
124124
[02]: /docs/settings/overview#frontmatter.content.pagefolders
125125
[03]: /docs/site-preview#configuration
126126
[04]: /docs/content-creation/multilingual

content/docs/content-creation/multilingual.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Multilingual
33
slug: content-creation/multilingual
44
description: Learn how to use multilingual content in Front Matter CMS
55
date: 2024-02-21T09:10:16.640Z
6-
lastmod: 2024-02-22T17:35:19.585Z
6+
lastmod: 2024-04-30T08:08:05.114Z
77
weight: 200.71
88
---
99

@@ -219,7 +219,7 @@ Follow the next steps in order to configure the DeepL authentication key:
219219

220220
### Start translating
221221

222-
Once you configured Deepl or Azure AI Translator, when you [create a new translation](docs/content-creation/multilingual#create-a-translation),
222+
Once you configured Deepl or Azure AI Translator, when you [create a new translation](/docs/content-creation/multilingual#create-a-translation),
223223
the CMS will automatically submit the article title, description, and content to the
224224
translation service.
225225

scripts/generate-sitemap.js

Lines changed: 33 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,49 @@
1-
const glob = require('glob');
2-
const fs = require('fs');
3-
const path = require('path');
4-
const matter = require('gray-matter');
1+
const glob = require("glob");
2+
const fs = require("fs");
3+
const path = require("path");
4+
const matter = require("gray-matter");
55

66
(async () => {
77
const baseUrl = `https://frontmatter.codes`;
8-
8+
99
// Ignore Next.js specific files (e.g., _app.js) and API routes.
1010
let pages = fs
11-
.readdirSync(path.join(__dirname, '../pages'))
12-
.filter((staticPage) => {
13-
return ![
14-
"_app.tsx",
15-
"_document.tsx",
16-
"_error.tsx",
17-
"sitemap.xml.tsx",
18-
"index.tsx",
19-
"404",
20-
"api"
21-
].includes(staticPage);
22-
})
23-
.map((staticPagePath) => ({
24-
lastModified: new Date().toISOString(),
25-
slug: `${baseUrl}/${staticPagePath}`
26-
}));
11+
.readdirSync(path.join(__dirname, "../pages"))
12+
.filter((staticPage) => {
13+
return ![
14+
"_app.tsx",
15+
"_document.tsx",
16+
"_error.tsx",
17+
"sitemap.xml.tsx",
18+
"index.tsx",
19+
"404.tsx",
20+
"404",
21+
"api",
22+
].includes(staticPage);
23+
})
24+
.map((staticPagePath) => ({
25+
lastModified: new Date().toISOString(),
26+
slug: `${baseUrl}/${staticPagePath}`,
27+
}));
2728

28-
const mdDir = path.join(process.cwd(), 'content');
29+
const mdDir = path.join(process.cwd(), "content");
2930
// const mdFiles = fs.readdirSync(path.join(mdDir, 'docs')).filter(f => f.endsWith(`.md`));
3031

31-
const mdFiles = glob.sync(path.join(mdDir, 'docs/**/*.md'));
32+
const mdFiles = glob.sync(path.join(mdDir, "docs/**/*.md"));
3233
const mdPages = mdFiles.map((fullPath) => {
3334
const fileName = path.basename(fullPath);
34-
const fileContents = fs.readFileSync(fullPath, 'utf8');
35+
const fileContents = fs.readFileSync(fullPath, "utf8");
3536
const { data } = matter(fileContents);
3637
return {
3738
lastModified: data["lastmod"] || new Date().toISOString(),
38-
slug: `${baseUrl}/docs/${data['slug'] || fileName.split('.').slice(0, -1).join('.')}`
39+
slug: `${baseUrl}/docs/${
40+
data["slug"] || fileName.split(".").slice(0, -1).join(".")
41+
}`,
3942
};
4043
});
4144

4245
pages = [...pages, ...mdPages];
43-
46+
4447
const sitemap = `<?xml version="1.0" encoding="UTF-8"?>
4548
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
4649
<url>
@@ -60,9 +63,9 @@ const matter = require('gray-matter');
6063
</url>
6164
`;
6265
})
63-
.join('')}
66+
.join("")}
6467
</urlset>
6568
`;
66-
67-
fs.writeFileSync('public/sitemap.xml', sitemap);
68-
})();
69+
70+
fs.writeFileSync("public/sitemap.xml", sitemap);
71+
})();

0 commit comments

Comments
 (0)