mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-06-25 12:31:45 +02:00
fix: enhance Hugo framework detection to support additional config file formats
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
|
||||
### 🐞 Fixes
|
||||
|
||||
- [#905](https://github.com/estruyf/vscode-front-matter/issues/905): Fix Hugo framework detection for sites using `hugo.toml`, `hugo.yaml`, `hugo.yml`, or `hugo.json` (the default config filename since Hugo v0.110)
|
||||
- Fix number fields not being saved to front matter when used inside block field groups
|
||||
- [#920](https://github.com/estruyf/vscode-front-matter/issues/920): Fix `metadata.fmRelFilePath` returning an absolute path on Windows by normalizing the workspace folder path before stripping it
|
||||
- [#963](https://github.com/estruyf/vscode-front-matter/issues/963): Prevent infinite update loops for fields when using Hugo partials as values in the front matter
|
||||
|
||||
@@ -35,7 +35,7 @@ export const FrameworkDetectors = [
|
||||
build: 'hugo',
|
||||
server: 'http://localhost:1313'
|
||||
},
|
||||
requiredFiles: ['config.toml', 'config.yaml', 'config.yml'],
|
||||
requiredFiles: ['hugo.toml', 'hugo.yaml', 'hugo.yml', 'hugo.json', 'config.toml', 'config.yaml', 'config.yml'],
|
||||
commands: {
|
||||
start: 'hugo server -D'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user