mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-23 03:34:08 +01:00
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:
parent
0395528829
commit
28a730339d
|
|
@ -138,6 +138,15 @@ sidebar_menu_compact = true
|
||||||
[[module.imports]]
|
[[module.imports]]
|
||||||
path = "github.com/matrix-org/docsy"
|
path = "github.com/matrix-org/docsy"
|
||||||
disable = false
|
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
|
# custom output formats
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue