fix: enhance Hugo framework detection to support additional config file formats

This commit is contained in:
Elio Struyf
2026-06-24 12:34:17 +02:00
parent cf55f641be
commit 79c1d81cbb
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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
+1 -1
View File
@@ -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'
}