From 28a730339dc70e8375e760980b83ab76410cc42c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Thu, 24 Oct 2024 00:38:27 +0200 Subject: [PATCH] Define asset sources in Hugo config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Helps Hugo to generate the correct links for files in /static. Signed-off-by: Kévin Commaille --- config.toml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config.toml b/config.toml index 06c11ad6..041d5ea0 100644 --- a/config.toml +++ b/config.toml @@ -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