mirror of
https://github.com/imfing/hextra.git
synced 2025-06-20 12:11:23 -04:00
fix: process static image url correctly
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
{{- if and $dest $isRemote -}}
|
||||
{{- if $startsWithSlash -}}
|
||||
{{/* Images under static directory */}}
|
||||
{{- $dest = (relURL $dest) -}}
|
||||
{{- $dest = (relURL (strings.TrimPrefix "/" $dest)) -}}
|
||||
{{- else if and $isPage (not $startsWithRelative) -}}
|
||||
{{/* Images that are sibling to the individual page file */}}
|
||||
{{ $dest = (printf "../%s" $dest) }}
|
||||
|
Reference in New Issue
Block a user