Framework Config: Added /srv/dev/hugo/wiki as a Hugo Module Mount & Generalized include.html to handle any /srv/ path by mapping it to the virtual assets directory.
This commit is contained in:
@@ -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 -}}
|
||||
|
||||
Reference in New Issue
Block a user