Skip to content

Commit

Permalink
Correcting for errors introduced by Hugo 0.141
Browse files Browse the repository at this point in the history
  • Loading branch information
toby-marks committed Feb 19, 2025
1 parent c77cb8e commit a693603
Show file tree
Hide file tree
Showing 4 changed files with 579 additions and 579 deletions.
8 changes: 4 additions & 4 deletions layouts/_default/_markup/render-image.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,14 @@
{{- /* Get image resource. */}}
{{- $r := "" }}
{{- if $u.IsAbs }}
{{- with resources.GetRemote $u.String }}
{{- with try (resources.GetRemote $u.String) }}
{{- with .Err }}
{{- if eq $errorLevel "warning" }}
{{- warnf "%s. See %s" . $contentPath }}
{{- warnf "%s. See %s" .Err $contentPath }}
{{- else if eq $errorLevel "error" }}
{{- errorf "%s. See %s" . $contentPath }}
{{- errorf "%s. See %s" .Err $contentPath }}
{{- end }}
{{- else }}
{{- else with .Value }}
{{- /* Destination is a remote resource. */}}
{{- $r = . }}
{{- end }}
Expand Down
Loading

0 comments on commit a693603

Please sign in to comment.