From 79c1d81cbb55332577ae69db13b4697fa51ec0c4 Mon Sep 17 00:00:00 2001 From: Elio Struyf Date: Wed, 24 Jun 2026 12:34:17 +0200 Subject: [PATCH] fix: enhance Hugo framework detection to support additional config file formats --- CHANGELOG.md | 1 + src/constants/FrameworkDetectors.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cccdcbfe..4cb9c391 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/constants/FrameworkDetectors.ts b/src/constants/FrameworkDetectors.ts index dc7e899c..a34a0802 100644 --- a/src/constants/FrameworkDetectors.ts +++ b/src/constants/FrameworkDetectors.ts @@ -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' }