diff --git a/.nvim/ftdetect/html.lua b/.nvim/ftdetect/html.lua
index 6fedaca..1c8cf86 100644
--- a/.nvim/ftdetect/html.lua
+++ b/.nvim/ftdetect/html.lua
@@ -2,7 +2,7 @@
local filetypedetectGroup = vim.api.nvim_create_augroup("HugoHTMLTemplates", {clear = true})
vim.api.nvim_create_autocmd({"BufRead", "BufNewFile"}, {
- pattern = {"*/layouts/*.html"},
+ pattern = {"**/layouts/**/*.html"},
group = filetypedetectGroup,
command = "set ft=gohtmltmpl",
})