diff --git a/data/i18n/en/en.toml b/data/i18n/en/en.toml index ff3a2fc4b030a..b598f8f595eaa 100644 --- a/data/i18n/en/en.toml +++ b/data/i18n/en/en.toml @@ -55,14 +55,11 @@ other = "Issue Summary" [cve_table] other = "Official Kubernetes CVE List" -[cve_table_date_before] -other = "(last updated: " - [cve_table_date_format] other = "02 Jan 2006 15:04:05 MST" -[cve_table_date_after] -other = ")" +[cve_table_date_format_string] +other = "(last updated: %s)" [deprecation_title] other = "You are viewing documentation for Kubernetes version:" diff --git a/layouts/shortcodes/cve-feed.html b/layouts/shortcodes/cve-feed.html index 887999305ab0f..8b829079fba89 100644 --- a/layouts/shortcodes/cve-feed.html +++ b/layouts/shortcodes/cve-feed.html @@ -1,9 +1,9 @@ {{ $feed := getJSON .Site.Params.cveFeedBucket }} {{ if ne $feed.version "https://jsonfeed.org/version/1.1" }} - {{ errorf "Build Failed. CVE feed does not comply with JSON feed v1.1" }} + {{ warnf "CVE feed shortcode. KEP-3203: CVE feed does not comply with JSON feed v1.1." }} {{ end }} - +
{{ T "cve_table" }} {{ T "cve_table_date_before" }}{{ $feed._kubernetes_io.updated_at | time.Format ( T "cve_table_date_format" ) }}{{ T "cve_table_date_after" }}{{ T "cve_table" }} {{ printf (T "cve_table_date_format_string") ($feed._kubernetes_io.updated_at | time.Format (T "cve_table_date_format")) }}
{{ T "cve_id" }}