Skip to content

Commit a1b26f3

Browse files
committed
Merge branch 'beta'
2 parents 76e08ee + 9619f64 commit a1b26f3

File tree

12 files changed

+355
-9
lines changed

12 files changed

+355
-9
lines changed

.frontmatter/database/mediaDb.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

content/changelog/CHANGELOG.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
11
# Change Log
22

3-
## [10.7.0] - 2024-xx-xx
3+
## [10.8.0] - 2025-02-xx
4+
5+
### ✨ New features
6+
7+
### 🎨 Enhancements
8+
9+
- [#915](https://github.com/estruyf/vscode-front-matter/issues/915): Added a new setting `frontMatter.panel.openOnSupportedFile` which allows you to open the panel view on supported files
10+
- [#921](https://github.com/estruyf/vscode-front-matter/issues/921): Improve the filename sanitization
11+
12+
### ⚡️ Optimizations
13+
14+
### 🐞 Fixes
15+
16+
- Fix for media folder parsing on Windows
17+
- Refresh button was not available on the media dashboard when having custom scripts defined
18+
- [#909](https://github.com/estruyf/vscode-front-matter/issues/909): Schema fix for the view modes
19+
- [#913](https://github.com/estruyf/vscode-front-matter/issues/913): Fix for relative media paths in page bundles
20+
- [#914](https://github.com/estruyf/vscode-front-matter/issues/914): Fix sanitizing of default filenames with an `_` in it
21+
22+
## [10.7.0] - 2024-12-31 - [Release notes](https://beta.frontmatter.codes/updates/v10.7.0)
423

524
### 🎨 Enhancements
625

@@ -12,6 +31,8 @@
1231

1332
### 🐞 Fixes
1433

34+
- [#895](https://github.com/estruyf/vscode-front-matter/issues/895): Fix issue with array values in filters
35+
1536
## [10.6.0] - 2024-11-06 - [Release notes](https://beta.frontmatter.codes/updates/v10.6.0)
1637

1738
### 🎨 Enhancements

content/changelog/v10.7.0.md

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
---
2+
title: Version 10.7.0 release notes
3+
description: Discover the new features in Version 10.7.0, including GitHub Copilot prompts, media actions, and enhanced SEO panel improvements.
4+
date: 2024-12-31T14:22:26.767Z
5+
lastmod: 2024-12-31T14:22:39.496Z
6+
slug: v10.7.0
7+
fmContentType: changelog
8+
---
9+
10+
## Ability to prompt GitHub Copilot from a custom script/action
11+
12+
You are now able to prompt GitHub Copilot straight from your custom script/action. This functionality allows you to use the power of AI to generate titles, descriptions, or any other content you need.
13+
14+
Here is an example of how you can prompt GitHub Copilot to generate a social message for sharing an article on Bluesky:
15+
16+
```javascript {{ "title": "Prompting GitHub Copilot", "description": "./scripts/share.mjs" }}
17+
import { ContentScript } from "@frontmatter/extensibility";
18+
19+
(() => {
20+
const contentScriptArgs = ContentScript.getArguments();
21+
if (contentScriptArgs) {
22+
const {
23+
frontMatter: { title, description, slug },
24+
promptResponse
25+
} = contentScriptArgs;
26+
27+
if (!promptResponse) {
28+
ContentScript.promptCopilot(`Create me a social message for sharing this article on Bluesky.
29+
To generate the post, please use the following information:
30+
31+
Title: """${title}"""
32+
Description: """${description}"""
33+
34+
The output should be plain text and should not include any markdown or HTML tags.
35+
You are free to add hashtags.
36+
37+
IMPORTANT: Please make sure to keep the post under 265 characters.`);
38+
return;
39+
}
40+
41+
const shareUrl = `https://bsky.app/intent/compose?text=${encodeURIComponent(promptResponse)}%20${encodeURIComponent(url)}`;
42+
ContentScript.open(shareUrl);
43+
})();
44+
```
45+
46+
Here is an example of how you can configure the script in your `frontmatter.json`:
47+
48+
```json {{ "title": "The script configuration", "description": "frontmatter.json" }}
49+
{
50+
"frontMatter.custom.scripts": [{
51+
"title": "Share blog post",
52+
"script": "./scripts/share.mjs",
53+
"type": "content"
54+
}]
55+
}
56+
```
57+
58+
> **Info**: You can find more information about in the [prompting GitHub Copilot](/docs/custom-actions/advanced#prompting-github-copilot) documentation section.
59+
60+
## Added media folder common actions
61+
62+
You can now perform common actions on media folders. These actions include:
63+
64+
- **Edit**: Change the folder name
65+
- **Delete**: Remove the folder
66+
67+
![Media actions](/releases/v10.7.0/media-actions.webp)
68+
69+
## UX improvements for the SEO panel view
70+
71+
With the help of [Tooster](https://github.com/T3sT3ro), the Front Matter side panel view has been improved. The SEO section has been completely redesigned and now provides a better overview of the SEO status of your content.
72+
73+
![Front Matter - SEO Status](/releases/v10.7.0/fm-seo-status.webp)
74+
75+
## Ability to define custom "group by" options
76+
77+
Like defining your own filter and sorting options, you can now also define your own "group by" options. This functionality allows you to group your content by custom fields.
78+
79+
Here is an example of how you can define custom "group by" options:
80+
81+
```json {{ "title": "Example of adding custom grouping options" }}
82+
{
83+
"frontMatter.content.grouping": [
84+
{
85+
"title": "Content Type",
86+
"name": "fmContentType"
87+
}
88+
]
89+
}
90+
```
91+
92+
> **Info**: You can find more information about in the [grouping](/docs/dashboard/content-view#grouping) documentation section.
93+
94+
## New setting to define the default timezone for date formatting
95+
96+
A new setting has been added to define the default timezone for date formatting. By default, it is set to `UTC`.
97+
98+
```json {{ "title": "Setting the default timezone", "description": "frontmatter.json" }}
99+
{
100+
"frontMatter.global.timezone": "UTC"
101+
}
102+
```
103+
104+
## Related issues/enhancements
105+
106+
### 🎨 Enhancements
107+
108+
- [#405](https://github.com/estruyf/vscode-front-matter/issues/405): Added new `frontMatter.content.grouping` setting which allows you to define custom "group by" options
109+
- [#705](https://github.com/estruyf/vscode-front-matter/issues/705): UX improvements for the panel view
110+
- [#887](https://github.com/estruyf/vscode-front-matter/issues/887): Added new `frontMatter.global.timezone` setting, by default it is set to `UTC` for date formatting
111+
- [#888](https://github.com/estruyf/vscode-front-matter/issues/888): Added the ability to prompt GitHub Copilot from a custom script/action
112+
- [#892](https://github.com/estruyf/vscode-front-matter/issues/892): Added media folder common actions
113+
114+
### 🐞 Fixes
115+
116+
- [#895](https://github.com/estruyf/vscode-front-matter/issues/895): Fix issue with array values in filters

content/docs/ai/index.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: AI features
33
slug: ai-features
44
description: null
55
date: 2024-08-13T07:26:50.054Z
6-
lastmod: 2024-09-16T12:28:36.834Z
6+
lastmod: 2025-01-07T20:39:16.936Z
77
weight: 880
88
---
99

@@ -18,9 +18,6 @@ In the July 2024 release of Visual Studio Code, extension developers are able to
1818
Copilot's Large Language Model (LLM). Front Matter CMS took advantage of this feature to provide you
1919
with the ability to provide title, description, and tags suggestions.
2020

21-
> **Important**: This feature is only available when you have the GitHub Copilot extension installed
22-
> and a valid license.
23-
2421
The AI features are available in the following places:
2522

2623
- Title suggestions when creating new content

content/docs/custom-actions/advanced.md

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Advanced script actions
33
slug: custom-actions/advanced
44
description: null
55
date: 2024-08-12T14:42:34.817Z
6-
lastmod: 2024-08-13T07:50:28.315Z
6+
lastmod: 2024-12-31T13:02:57.576Z
77
weight: 500.3
88
---
99

@@ -55,6 +55,42 @@ article?" and can select either "Twitter" or "LinkedIn".
5555

5656
![Ask a question via the extensibility library][01]
5757

58+
## Prompting GitHub Copilot
59+
60+
If you are using GitHub Copilot, you can also prompt Copilot with your custom scripts.
61+
For example, you could use it to generate a social message which you want to
62+
share on X, or Bluesky.
63+
64+
```javascript {{ "title": "Prompting GitHub Copilot" }}
65+
import { ContentScript } from "@frontmatter/extensibility";
66+
67+
(() => {
68+
const contentScriptArgs = ContentScript.getArguments();
69+
if (contentScriptArgs) {
70+
const {
71+
frontMatter: { title, description, slug },
72+
promptResponse
73+
} = contentScriptArgs;
74+
75+
if (!promptResponse) {
76+
ContentScript.promptCopilot(`Create me a social message for sharing this article on Bluesky.
77+
To generate the post, please use the following information:
78+
79+
Title: """${title}"""
80+
Description: """${description}"""
81+
82+
The output should be plain text and should not include any markdown or HTML tags.
83+
You are free to add hashtags.
84+
85+
IMPORTANT: Please make sure to keep the post under 265 characters.`);
86+
return;
87+
}
88+
89+
const shareUrl = `https://bsky.app/intent/compose?text=${encodeURIComponent(promptResponse)}%20${encodeURIComponent(url)}`;
90+
ContentScript.open(shareUrl);
91+
})();
92+
```
93+
5894
## Bulk execution
5995

6096
If you want, you can run a script for multiple content files at once. This is useful when you want to

content/docs/dashboard/content-view.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Content view
33
slug: dashboard/content-view
44
description: null
55
date: 2022-11-28T14:55:04.221Z
6-
lastmod: 2024-08-07T12:33:01.757Z
6+
lastmod: 2024-12-31T14:10:03.642Z
77
weight: 300.1
88
---
99

@@ -151,6 +151,34 @@ To define your default sorting options by setting the
151151
`frontMatter.content.defaultSorting` setting for the content view, and the
152152
`frontMatter.media.defaultSorting` setting for the media view.
153153

154+
## Grouping
155+
156+
By default, you can group your content by the following options:
157+
158+
- Year
159+
- Draft status
160+
161+
You can change the grouping options by specifying the `frontMatter.content.grouping` setting.
162+
This setting allows you to define the grouping options for the content view.
163+
164+
### Configure grouping options
165+
166+
| Property | Description | Default |
167+
| --- | --- | --- |
168+
| `title` | The title of the grouping option | `""` |
169+
| `name` | The name of the field to group by (needs to be present in your content its front matter) | `""` |
170+
171+
```json {{ "title": "Example of adding custom grouping options" }}
172+
{
173+
"frontMatter.content.grouping": [
174+
{
175+
"title": "Content Type",
176+
"name": "fmContentType"
177+
}
178+
]
179+
}
180+
```
181+
154182
## Show on startup
155183

156184
If you want, you can check on the `Open on startup?` checkbox. This setting will allow the dashboard

content/docs/settings/available-settings.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Settings overview
33
slug: settings/overview
44
description: null
55
date: 2023-02-13T16:44:09.618Z
6-
lastmod: 2024-09-16T12:24:01.177Z
6+
lastmod: 2024-12-31T14:06:08.094Z
77
weight: 1000.2
88
---
99

@@ -106,6 +106,13 @@ Specify if you want to highlight the Front Matter in the Markdown file.
106106
- Type: `boolean`
107107
- Default: `true`
108108

109+
### frontMatter.content.grouping
110+
111+
Specify the grouping options you want to use for your content dashboard.
112+
113+
- Type: `{ title: string; name: string; }[]`
114+
- Default: `[]`
115+
109116
### frontMatter.content.hideFm
110117

111118
Specify if you want to hide the Front Matter in the Markdown file.
@@ -461,6 +468,13 @@ Specifies which type of notifications you want to see or which you want to hide.
461468
- Type: `array<string>`
462469
- Default: `["info", "warning", "error"]`
463470

471+
### frontMatter.global.timezone
472+
473+
Specify the timezone you want to use for your date formatting.
474+
475+
- Type: `string`
476+
- Default: `UTC`
477+
464478
### frontMatter.media.contentTypes
465479

466480
Specify the content types you want to use for your media files.

0 commit comments

Comments
 (0)