Skip to content

Commit

Permalink
Fix for Hugo 0.141.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cmahnke committed Jan 18, 2025
1 parent f2de8ed commit 1862d54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/shortcodes/site-generator.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
{{- $version := "" }}

{{- $opts := dict "headers" (dict "User-Agent" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36") }}
{{- with resources.GetRemote $url $opts}}
{{- with try (resources.GetRemote $url $opts) -}}
{{- with .Err }}
{{- $description = printf "Unable to reach %s, skipping!" $url -}}
{{- warnf $description }}
{{- else }}
{{- else with .Value -}}

{{- with findRE $patternVersion .Content }}
{{- with index . 0 }}
Expand Down

0 comments on commit 1862d54

Please sign in to comment.