mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
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
14 lines
567 B
HTML
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> |