diff options
author | Mark Otto <markd.otto@gmail.com> | 2022-03-12 08:27:58 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-12 08:27:58 +0300 |
commit | 7c966f584889c6dfb0f1a70dd1757b2d237a68a0 (patch) | |
tree | e706e72d3ec329f80123f58eed31aac27dc5f530 /site/layouts | |
parent | 1936e0c5eaa7f8f2d89ec1ac863aa73130fb69b1 (diff) |
Convert added in badges to shortcode (#36007)
Diffstat (limited to 'site/layouts')
-rw-r--r-- | site/layouts/shortcodes/added-in.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/site/layouts/shortcodes/added-in.html b/site/layouts/shortcodes/added-in.html new file mode 100644 index 0000000000..ca461c2e68 --- /dev/null +++ b/site/layouts/shortcodes/added-in.html @@ -0,0 +1,5 @@ +{{- /* Outputs badge to identify the first version something was added */ -}} + +{{- $version := .Get 0 -}} + +<small class="d-inline-flex mb-3 px-2 py-1 fw-semibold text-success bg-success bg-opacity-10 border border-success border-opacity-10 rounded-2">Added in v{{ $version }}</small> |