mirror of
https://github.com/imfing/hextra.git
synced 2025-06-20 15:41:17 -04:00
fix: process static image url correctly
This commit is contained in:
@ -31,7 +31,9 @@
|
||||
{{- $image = $processed.RelPermalink -}}
|
||||
{{- else -}}
|
||||
{{/* Otherwise, use relative link of the image */}}
|
||||
{{- $image = ($image | relURL) -}}
|
||||
{{- if hasPrefix $image "/" -}}
|
||||
{{- $image = relURL (strings.TrimPrefix "/" $image) -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
|
Reference in New Issue
Block a user