Change:
This is a Feature Request <!-- Please only use this template for submitting feature/enhancement requests --<!-- See for guidance on writing an actionable issue description. --What would you like to be Migrate to instead of Hugo's Why is this needed Upstream Hugo has deprecated , which we use. We should aim to migrate to use ; see Comments We may need to upgrade to a newer Hugo as part of this work, or related to it. /area web-development /lifecycle frozen
/triage accepted /priority backlog
Let me see if I can assist with this. Edit: Proposed fix in /assign

Discussion:
<del> {{ getJSON .Site.Params.cveFeedBucket | jsonify }} </del> <ins> {{- $url := .Site.Params.cveFeedBucket -}} {{- with resources.GetRemote $url -}} {{- if .Err -}} {{- $message := printf "Failed to retrieve CVE data: %s" .Err -}} {{- if eq hugo.Environment "production" -}} {{- errorf $message -}} {{- else -}} {{- warnf $message -}} {{- end -}} {{- else -}} {{- .Content | transform.Unmarshal | jsonify -}} {{- end -}} {{- else -}} {{- $message := printf "Unable to fetch CVE data from the specified URL: %q" $url -}} {{- if eq hugo.Environment "production" -}} {{- errorf $message -}} {{- else -}} {{- warnf $message -}} {{- end -}} {{- end -}} </ins>  No newline at end of file

<del> {{ $feed := getJSON .Site.Params.cveFeedBucket -}} </del> <ins> {{- $url := .Site.Params.cveFeedBucket -}} {{- $feed := "" -}} {{- with resources.GetRemote $url -}} {{- if .Err -}} {{- $message := printf "Failed to retrieve CVE data: %s" .Err -}} {{- if eq hugo.Environment "production" -}} {{- errorf $message -}} {{- else -}} {{- warnf $message -}} {{- end -}} {{- else -}} {{- $feed = .Content | transform.Unmarshal -}} {{- end -}} {{- else -}} {{- $message := printf "Unable to fetch CVE data from the specified URL: %q" $url -}} {{- if eq hugo.Environment "production" -}} {{- errorf $message -}} {{- else -}} {{- warnf $message -}} {{- end -}} {{- end -}} </ins> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> <channel> <title>{{ $feed.title }}</title>

<generator>Hugo -- gohugo.io</generator> <language>en-US</language> <copyright>{{ .Site.Params.Copyright_k8s }}</copyright> <ins> <!-- Render last build date only if CVE feed is available, accommodating for offline builds. --> {{- if ne $feed nil -}} </ins> <lastBuildDate>{{ time.Format "Mon, 02 Jan 2006 15:04:05 -0700" $feed._kubernetes_io.updated_at | safeHTML }}</lastBuildDate> <ins> {{- end -}} </ins> {{ with .OutputFormats.Get "RSS" -}} {{ printf "<atom:link href=%q rel="self" type=%q />" .Permalink .MediaType | safeHTML }} {{ end -}}

<del> {{ $feed := getJSON .Site.Params.cveFeedBucket }} {{ if ne $feed.version "https://jsonfeed.org/version/1.1" }} {{ warnf "CVE feed shortcode. KEP-3203: CVE feed does not comply with JSON feed v1.1." }} {{ end }} </del> <ins> {{- $url := .Site.Params.cveFeedBucket }} {{- $feed := "" -}} <!-- Try to fetch remote resource from the specified URL --> {{- with resources.GetRemote $url -}} {{- if .Err -}} <!-- Error message if retrieval fails --> {{- $message := printf "Failed to retrieve CVE data: %s" .Err -}} {{- if eq hugo.Environment "production" -}} {{- errorf $message -}} {{- else -}} {{- warnf $message -}} {{- end -}} {{- else -}} <!-- Process the content if retrieval is successful --> {{- $feed = .Content | transform.Unmarshal -}} {{- if ne $feed.version "https://jsonfeed.org/version/1.1" -}} {{- $warningMessage := "CVE feed shortcode. KEP-3203: CVE feed does not comply with JSON feed v1.1." -}} {{- if eq hugo.Environment "production" -}} {{- errorf $warningMessage -}} {{- else -}} {{- warnf $warningMessage -}} {{- end -}} {{- end -}} {{- end -}} {{- else -}} <!-- Error message if unable to fetch the remote resource --> {{- $message := printf "Unable to fetch CVE data from the specified URL: %q" $url -}} {{- if eq hugo.Environment "production" -}} {{- errorf $message -}} {{- else -}} {{- warnf $message -}} {{- end -}} {{- end -}} <!-- Render table only if CVE feed is available, accommodating for offline builds. --> {{ if ne $feed nil }} </ins> <table class="security-cves"> <caption style="caption-side: top;">{{ T "cve_table" }} {{ printf (T "cve_table_date_format_string") ($feed._kubernetes_io.updated_at | time.Format (T "cve_table_date_format")) }}</caption> <thead>

{{ end }} </tbody> </table> <ins> {{- end -}} </ins>

<!-- Fetch release_binaries.json from kubernetes-sigs/downloadkubernetes to render in table --> <del> {{ $response := getJSON "https://raw.githubusercontent.com/kubernetes-sigs/downloadkubernetes/master/dist/release_binaries.json" }} </del> <ins> {{- $url := "https://raw.githubusercontent.com/kubernetes-sigs/downloadkubernetes/master/dist/release_binaries.json" }} {{- $response := "" }} {{- with resources.GetRemote $url -}} {{- if .Err -}} {{- $message := printf "Failed to retrieve release binaries data: %s" .Err -}} {{- if eq hugo.Environment "production" -}} {{- errorf $message -}} {{- else -}} {{- warnf $message -}} {{- end -}} {{- else -}} {{- $response = .Content | transform.Unmarshal }} {{- end -}} {{- else -}} {{ $message := printf "Unable to fetch release binaries data from the specified URL: %q" $url -}} {{- if eq hugo.Environment "production" -}} {{- errorf $message -}} {{- else -}} {{- warnf $message -}} {{- end -}} {{- end -}} <!-- Continue processing only if release binaries JSON is available, accommodating for offline builds. --> {{ if ne $response nil }} </ins> {{ $currentVersion := site.Params.version }} {{ $Binaries := slice }}

</tbody> </table> </div> <del> </div> </del>  No newline at end of file <ins> </div> {{- end -}} </ins>  No newline at end of file