summaryrefslogtreecommitdiffstats
path: root/commands/hugo.go
diff options
context:
space:
mode:
authorPaul van Brouwershaven <vanbroup@users.noreply.github.com>2022-06-03 21:37:50 +0200
committerGitHub <noreply@github.com>2022-06-03 21:37:50 +0200
commitc7d5f9f067fd6a37ac6b75cb1c02259debd3ff21 (patch)
treee2f83861c54ac9ac3224773f27e7a5f185b789de /commands/hugo.go
parentbfebd8c02cfc0d4e4786e0f64932d832d3976e92 (diff)
resources: Register MediaTypes before build
Fixes #9971
Diffstat (limited to 'commands/hugo.go')
-rw-r--r--commands/hugo.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/commands/hugo.go b/commands/hugo.go
index c61e64185..f10fec00b 100644
--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -127,6 +127,12 @@ func initializeConfig(mustHaveConfigFile, failOnInitErr, running bool,
return nil, err
}
+ if h := c.hugoTry(); h != nil {
+ for _, s := range h.Sites {
+ s.RegisterMediaTypes()
+ }
+ }
+
return c, nil
}