mirror of
https://github.com/falsycat/ar.falsy.cat.git
synced 2024-12-26 00:14:51 +00:00
fix: wikilink image relURL for images with spaces
This commit is contained in:
parent
0ddc48a452
commit
66eaa444a4
@ -26,7 +26,7 @@
|
|||||||
{{if (hasPrefix . "!")}}
|
{{if (hasPrefix . "!")}}
|
||||||
{{$inner := . | strings.TrimPrefix "![[" | strings.TrimSuffix "]]" }}
|
{{$inner := . | strings.TrimPrefix "![[" | strings.TrimSuffix "]]" }}
|
||||||
{{$split := split $inner "|"}}
|
{{$split := split $inner "|"}}
|
||||||
{{$path := index $split 0}}
|
{{$path := index $split 0 | relURL}}
|
||||||
{{$reference := split $path "#"}}
|
{{$reference := split $path "#"}}
|
||||||
{{$title := index $reference 0}}
|
{{$title := index $reference 0}}
|
||||||
{{$display := default $title (index $split 1)}}
|
{{$display := default $title (index $split 1)}}
|
||||||
|
Loading…
Reference in New Issue
Block a user