Skip to content

Commit d64a65a

Browse files
security: add RSS feed option (#23328)
Do not merge, we need to configure some behavior rules in CloudFront ## Description Adds an RSS feed subscription option to the security announcements page. We can reuse this shortcode for other release notes or announcements pages if we want! ## Related issues or tickets https://docker.atlassian.net/browse/ENGDOCS-2939 ## Reviews - [ ] Editorial review
1 parent 5de50a2 commit d64a65a

File tree

4 files changed

+44
-0
lines changed

4 files changed

+44
-0
lines changed

content/manuals/security/security-announcements.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@ description: Docker security announcements
33
keywords: Docker, CVEs, security, notice, Log4J 2, Log4Shell, Text4Shell, announcements
44
title: Docker security announcements
55
linkTitle: Security announcements
6+
outputs: ["HTML", "markdown", "RSS"]
7+
type: "security-announcements"
68
weight: 80
79
toc_min: 1
810
toc_max: 2
911
---
1012

13+
{{< rss-button feed="/security/security-announcements/index.xml" text="Subscribe to security RSS feed" >}}
14+
1115
## Docker Desktop 4.44.3 security update: CVE-2025-9074
1216

1317
_Last updated August 20, 2025_

hugo_stats.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@
200200
"border-divider-light",
201201
"border-gray-100",
202202
"border-gray-200",
203+
"border-gray-300",
203204
"border-gray-400",
204205
"border-green-400",
205206
"border-l-2",
@@ -247,6 +248,7 @@
247248
"dark:border-b-blue-600",
248249
"dark:border-divider-dark",
249250
"dark:border-gray-400",
251+
"dark:border-gray-600",
250252
"dark:border-gray-700",
251253
"dark:border-green-400",
252254
"dark:border-l-magenta-dark",
@@ -486,6 +488,7 @@
486488
"pt-4",
487489
"px-1",
488490
"px-2",
491+
"px-3",
489492
"px-4",
490493
"py-0.5",
491494
"py-1",
@@ -504,7 +507,10 @@
504507
"rotate-45",
505508
"rounded",
506509
"rounded-full",
510+
"rounded-md",
507511
"rounded-sm",
512+
"rss-button",
513+
"rss-subscribe",
508514
"scale-50",
509515
"scale-75",
510516
"scroll-mt-2",
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
2+
<channel>
3+
<title>Docker Docs - Security Announcements</title>
4+
<link>{{ .Permalink }}</link>
5+
<description>Security announcements and advisories</description>
6+
<generator>Hugo -- gohugo.io</generator>
7+
<language>{{ .Site.LanguageCode | default "en" }}</language>
8+
<lastBuildDate>{{ now.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>
9+
<atom:link href="{{ .Permalink }}index.xml" rel="self" type="application/rss+xml" />
10+
11+
<!-- Single item with the page content -->
12+
<item>
13+
<title>Latest Security Announcements - {{ now.Format "January 2, 2006" }}</title>
14+
<link>{{ .Permalink }}</link>
15+
<pubDate>{{ now.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
16+
<guid>{{ .Permalink }}#{{ now.Unix }}</guid>
17+
<description>{{ .Plain | html }}</description>
18+
</item>
19+
</channel>
20+
</rss>

layouts/shortcodes/rss-button.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{{ $feed := .Get "feed" | default "index.xml" }}
2+
{{ $text := .Get "text" | default "Subscribe to RSS feed" }}
3+
<button
4+
onclick="window.open('{{ $feed }}', '_blank')"
5+
data-heap-id="rss-subscribe-button"
6+
class="inline-flex items-center gap-2 border border-gray-300 dark:border-gray-600 rounded-md hover:bg-gray-50 dark:hover:bg-gray-900 py-2 px-3 text-sm transition-colors"
7+
>
8+
<span class="icon-svg text-base leading-none">
9+
{{ partial "icon" "rss_feed" }}
10+
</span>
11+
<div class="leading-tight">
12+
<div class="text-base">{{ $text }}</div>
13+
</div>
14+
</button>

0 commit comments

Comments
 (0)