Describe the bug
When describing a content type in your frontmatter.json, you can specify a default file name, that will be used when creating content of this type. If you set a name with an underscore _ , the underscore will get stripped out of the name (the content file name will not have this underscore). This is annoying when using vscode-frontmatter with Hugo site generator, because _index.md is a filename that means something else as index.md for Hugo
To Reproduce
in your frontmatter.json, in a content type description :
Create a new content => The file name will be index.md, not _index.md
Expected behavior
The underscore should not be stripped, or there should be an option that ensure it is not stripped (eg. "cleanDefaultFilename" : false)
Device:
OS: Linux
Front Matter CMS Version [10.7.0]
**Describe the bug**
When describing a content type in your `frontmatter.json`, you can specify a _default file name_, that will be used when creating content of this type. If you set a name with an underscore `_` , the underscore will get stripped out of the name (the content file name will not have this underscore). This is annoying when using vscode-frontmatter with Hugo site generator, because `_index.md` is a filename that means something else as `index.md` for Hugo
**To Reproduce**
in your frontmatter.json, in a content type description :
```json
{
[...]
"frontMatter.framework.id": "hugo",
"frontMatter.taxonomy.contentTypes": [
{
"name": "default",
"pageBundle": true,
"defaultFileName": "_index",
[...]
}
]
}
```
Create a new content => The file name will be `index.md`, not `_index.md`
**Expected behavior**
The underscore should not be stripped, or there should be an option that ensure it is not stripped (eg. `"cleanDefaultFilename" : false`)
**Device:**
- OS: Linux
- Front Matter CMS Version [10.7.0]
<!-- github-sync-id:2810984131 -->
Thank you, @lamyseba, for opening this issue. A fix has been implemented, and you can test it out in the latest beta version of the extension.
https://marketplace.visualstudio.com/items?itemName=eliostruyf.vscode-front-matter-beta
<!-- github-comment-id:2639251696 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Describe the bug
When describing a content type in your
frontmatter.json, you can specify a default file name, that will be used when creating content of this type. If you set a name with an underscore_, the underscore will get stripped out of the name (the content file name will not have this underscore). This is annoying when using vscode-frontmatter with Hugo site generator, because_index.mdis a filename that means something else asindex.mdfor HugoTo Reproduce
in your frontmatter.json, in a content type description :
Create a new content => The file name will be
index.md, not_index.mdExpected behavior
The underscore should not be stripped, or there should be an option that ensure it is not stripped (eg.
"cleanDefaultFilename" : false)Device:
Thank you, @lamyseba, for opening this issue. A fix has been implemented, and you can test it out in the latest beta version of the extension.
https://marketplace.visualstudio.com/items?itemName=eliostruyf.vscode-front-matter-beta
Thank you @estruyf. beta version works for me !
Version 10.8.0 has been released