fix: wikilink image relURL for images with spaces

hugo
Jacky Zhao 3 years ago
parent 0ddc48a452
commit 66eaa444a4

@ -26,7 +26,7 @@
{{if (hasPrefix . "!")}}
{{$inner := . | strings.TrimPrefix "![[" | strings.TrimSuffix "]]" }}
{{$split := split $inner "|"}}
{{$path := index $split 0}}
{{$path := index $split 0 | relURL}}
{{$reference := split $path "#"}}
{{$title := index $reference 0}}
{{$display := default $title (index $split 1)}}

Loading…
Cancel
Save