Files
docker-docs/layouts/shortcodes/rss-button.html
Sarah Sanders d64a65a33e 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
2025-08-29 15:19:40 -04:00

14 lines
567 B
HTML

{{ $feed := .Get "feed" | default "index.xml" }}
{{ $text := .Get "text" | default "Subscribe to RSS feed" }}
<button
onclick="window.open('{{ $feed }}', '_blank')"
data-heap-id="rss-subscribe-button"
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"
>
<span class="icon-svg text-base leading-none">
{{ partial "icon" "rss_feed" }}
</span>
<div class="leading-tight">
<div class="text-base">{{ $text }}</div>
</div>
</button>