{{- $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 -}} {{ $feed.title }} {{ .Site.BaseURL }}docs/reference/issues-security/official-cve-feed/ {{ $feed.description }} Hugo -- gohugo.io en-US {{ .Site.Params.Copyright_k8s }} {{- if ne $feed nil -}} {{ time.Format "Mon, 02 Jan 2006 15:04:05 -0700" $feed._kubernetes_io.updated_at | safeHTML }} {{- end -}} {{ with .OutputFormats.Get "RSS" -}} {{ printf "" .Permalink .MediaType | safeHTML }} {{ end -}} {{ range $feed.items -}} {{ .id }} {{ .url }} {{ time.Format "Mon, 02 Jan 2006 15:04:05 -0700" .date_published | safeHTML }} {{ .external_url }} {{ htmlEscape .summary }} {{ end -}}