-
-
Notifications
You must be signed in to change notification settings - Fork 106
Issue: Stripping underscore in default filename #914
Copy link
Copy link
Closed
Labels
In BETAThe current task is available for testing in the BETA version.The current task is available for testing in the BETA version.ReleasedThe task has been releasedThe task has been releasedbugSomething isn't workingSomething isn't workingv10.8.0Project: v10.8.0Project: v10.8.0
Description
Metadata
Metadata
Assignees
Labels
In BETAThe current task is available for testing in the BETA version.The current task is available for testing in the BETA version.ReleasedThe task has been releasedThe task has been releasedbugSomething isn't workingSomething isn't workingv10.8.0Project: v10.8.0Project: v10.8.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.mdis a filename that means something else asindex.mdfor HugoTo Reproduce
in your frontmatter.json, in a content type description :
{ [...] "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.mdExpected behavior
The underscore should not be stripped, or there should be an option that ensure it is not stripped (eg.
"cleanDefaultFilename" : false)Device: