Define asset sources in Hugo config

Helps Hugo to generate the correct links for files in /static.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
Kévin Commaille 2024-10-24 00:38:27 +02:00
parent 0395528829
commit 28a730339d
No known key found for this signature in database
GPG key ID: 0C971D9DBC9D678D

View file

@ -138,6 +138,15 @@ sidebar_menu_compact = true
[[module.imports]]
path = "github.com/matrix-org/docsy"
disable = false
# Mounting /assets and /static as assets directories helps Hugo to generate
# the correct URL.
[[module.mounts]]
source = 'assets'
target = 'assets'
[[module.mounts]]
source = 'static'
target = 'assets'
# custom output formats