Skip to content

Commit 1609058

Browse files
committed
Taxonomy tagging
1 parent 4e84d98 commit 1609058

File tree

15 files changed

+939
-18
lines changed

15 files changed

+939
-18
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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# Change Log
22

3-
## [9.5.0] - 2024-xx-xx
3+
## [10.0.0] - 2024-xx-xx
44

55
### ✨ New features
66

77
- [#731](https://github.com/estruyf/vscode-front-matter/issues/731): Added the ability to map/unmap taxonomy to multiple pages at once
88
- [#746](https://github.com/estruyf/vscode-front-matter/issues/746): Placeholder support added to to the `slug` field
99
- [#749](https://github.com/estruyf/vscode-front-matter/issues/749): Ability to set your own filters on the content dashboard with the `frontMatter.content.filters` setting
10+
- [[#756](https://github.com/estruyf/vscode-front-matter/issues/756): i18n/multilingual content support
1011

1112
### 🎨 Enhancements
1213

content/docs/dashboard/taxonomy-view.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Taxonomy view
33
slug: taxonomy-view
44
description: null
55
date: 2022-11-28T14:55:04.221Z
6-
lastmod: 2022-11-28T14:55:04.221Z
6+
lastmod: 2024-02-22T10:00:42.445Z
77
weight: 300.4
88
---
99

@@ -25,13 +25,23 @@ You can perform the following actions on the taxonomies view:
2525

2626
- **Add**: If a taxonomy value is not yet stored in your settings, the `+` add action is shown to
2727
allow you a quick way to store the value;
28+
- **Tag content**: Tag content with a taxonomy value. This will update the front matter of the file
29+
with the taxonomy value;
2830
- **Edit**: Edit the taxonomy value in the settings + all the files where it is used;
2931
- **Merge**: Merge two taxonomy values into one. For instance, if you have `dev` and `development`
3032
you can merge `dev` into `development` and it will update all the files where it is used;
3133
- **Move**: Move a taxonomy value to another type. For instance, if you want to move a tag to a
3234
category;
3335
- **Delete**: Delete a taxonomy value.
3436

37+
### Tag content
38+
39+
When you click on the **tag content** action, you will get a view with all your content
40+
where you can tag/untag the content with the taxonomy value.
41+
42+
![Tag your taxonomy][03]
43+
3544
<!-- Link References -->
36-
[01]: /releases/v8.1.0/taxonomies-view.png
37-
[02]: /releases/v8.0.0/taxonomy-actions.png
45+
[01]: /releases/v10.0.0/taxonomy-dashboard.webp
46+
[02]: /releases/v10.0.0/taxonomy-actions.png
47+
[03]: /releases/v10.0.0/taxonomy-tagging.webp

content/docs/git-integration/index.md

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,58 @@ title: Git integration
33
slug: git-integration
44
description: null
55
date: 2022-09-22T09:31:04.413Z
6-
lastmod: 2023-04-01T13:50:42.582Z
6+
lastmod: 2024-02-22T09:47:58.821Z
77
weight: 450
88
---
99

1010
# GIT Integration
1111

12-
If you are using git to manage your content, Front Matter can be used to sync your changes from and
13-
to your git repository.
12+
If you are using git to manage your content, Front Matter CMS can be used to sync your changes from
13+
and to your git repository.
1414

1515
![Sync your changes with GIT][01]
1616

1717
## Enable GIT integration
1818

1919
To enable this feature, you will need to set the `frontMatter.git.enabled` setting to `true`.
2020

21-
## Change the commit message
21+
## Commit message
2222

2323
The commit message can be customized via the `frontMatter.git.commitMessage` setting (default is
2424
`Synced by Front Matter`).
2525

2626
> **Info**: You can make use of the placeholders available in Front Matter for
2727
> your commit messages. For example: `Synced by Front Matter {{hour24}}:{{minute}}`.
2828
29+
### Require commit message
30+
31+
If you want to require a commit message, you can set the `frontMatter.git.requiresCommitMessage`
32+
setting with the branches on which you want to require a commit message.
33+
34+
```json {{ "title": "Example to require a commit message on the main branch" }}
35+
{
36+
"frontMatter.git.requiresCommitMessage": ["main"]
37+
}
38+
```
39+
40+
When you open the Front Matter CMS panel, you will now be prompted to enter a commit message.
41+
42+
![Enter a commit message before syncing](/releases/v10.0.0/require-commit-message.png)
43+
44+
## Disable syncing on certain branches
45+
46+
If you want to disable syncing on certain branches,
47+
you can set the `frontMatter.git.disabledBranches` setting with the branches on which you want to
48+
disable syncing.
49+
50+
```json {{ "title": "Example to disable syncing on the main branch" }}
51+
{
52+
"frontMatter.git.disabledBranches": ["main"]
53+
}
54+
```
55+
56+
![Disable the git sync action](/releases/v10.0.0/disable-git-sync.png)
57+
2958
## Git submodules
3059

3160
If you are using git submodules for managing your content, you have more control over them via the
@@ -39,4 +68,4 @@ following settings:
3968
| `frontMatter.git.submodule.folder` | The folder where the submodule is located. | `` |
4069

4170
<!-- Link References -->
42-
[01]: /releases/v8.1.0/git-integration.png
71+
[01]: /releases/v10.0.0/git-actions.png

frontmatter.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,5 +232,13 @@
232232
}
233233
]
234234
}
235-
}
235+
},
236+
"frontMatter.custom.scripts": [
237+
{
238+
"title": "Convert to webp",
239+
"script": "./scripts/convert-webp.mjs",
240+
"command": "~/.nvm/versions/node/v18.17.1/bin/node",
241+
"type": "mediaFile"
242+
}
243+
]
236244
}

0 commit comments

Comments
 (0)