Commit 71a913d
Fix restricted shortcode rendering on unassociated machines page (#25120)
## Description
The restricted shortcode on the [unassociated machines
page](https://docs.docker.com/unassociated-machines/) renders with a
visible `</span>` tag due to using `{{% %}}` (markdown) delimiters
instead of `{{< >}}` (HTML) delimiters.
The `{{% %}}` delimiter causes Hugo to process the shortcode's HTML
output through the markdown renderer, which escapes the HTML tags from
the icon partial.
## Fix
Switch from `{{% restricted %}}` to `{{< restricted >}}` delimiters.
This matches the pattern used by the similar `experimental` shortcode in
other content files (e.g., `layouts/cli.html`).
## Testing
Before (Prod) | After (Preview)
--- | ---
<img width="1082" height="649" alt="image"
src="https://github.com/user-attachments/assets/6713bf13-ebb0-46c2-8772-247b62afbc6a"
/> | <img width="1075" height="500" alt="image"
src="https://github.com/user-attachments/assets/250933a7-7701-4d3e-aae9-6b3732321edb"
/>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 0ed6c96 commit 71a913d
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments