We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ff5996 commit b629ebdCopy full SHA for b629ebd
layouts/_partials/assets/helpers/image-dimension.html
@@ -67,9 +67,9 @@
67
{{- if hasSuffix $src "svg" -}}
68
{{- $res = partial "utilities/GetResource.html" (dict "url" $src "page" $args.page) -}}
69
{{ if not $res }}
70
- {{- $targetURL := strings.TrimPrefix "/static" $src -}}
71
{{- $u := urls.Parse site.BaseURL }}
72
- {{- $targetURL = strings.TrimPrefix $u.Path $src -}}
+ {{- $targetURL := strings.TrimPrefix $u.Path $src -}}
+ {{- $targetURL = strings.TrimPrefix "/static" $src -}}
73
{{- if not (fileExists (path.Join "/static" $targetURL)) -}}
74
{{ warnf "Cannot find vector image resource: %q" $src -}}
75
{{ else }}
0 commit comments