diff --git a/config/_default/hugo.toml b/config/_default/hugo.toml index ff052a0..3a810f4 100644 --- a/config/_default/hugo.toml +++ b/config/_default/hugo.toml @@ -43,12 +43,18 @@ enableGitInfo = true [[module.mounts]] source = "/srv/docs/private" target = "content/private" + [[module.mounts]] + source = "/srv/docs/public/projects/hugo" + target = "content/public/projects/hugo" [[module.mounts]] source = "assets" target = "assets" [[module.mounts]] source = "/srv/configs" target = "assets/configs" + [[module.mounts]] + source = "/srv/dev/hugo/wiki" + target = "assets/dev/hugo/wiki" [security] [security.funcs] diff --git a/layouts/partials/include.html b/layouts/partials/include.html index f21976a..3931e2e 100644 --- a/layouts/partials/include.html +++ b/layouts/partials/include.html @@ -2,8 +2,8 @@ {{- $content := "" -}} {{- $found := false -}} -{{- /* Handle /srv/configs/ mapping to assets mount (mounted at assets/configs) */ -}} -{{- if strings.HasPrefix $path "/srv/configs/" -}} +{{- /* Handle /srv/ mapping to assets mount (trimming leading /srv/) */ -}} +{{- if strings.HasPrefix $path "/srv/" -}} {{- $assetPath := strings.TrimPrefix "/srv/" $path -}} {{- $res := resources.Get $assetPath -}} {{- if $res -}}