From ec68f3d26d0ada68338dd347f26ccaad68718a07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20D=C3=A9ramond?= Date: Tue, 25 Oct 2022 20:11:08 +0200 Subject: Docs: use 'added' page information to display a tag on top of the pages (#37341) --- site/content/docs/5.2/helpers/color-background.md | 2 -- site/layouts/_default/docs.html | 9 ++++++--- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'site') diff --git a/site/content/docs/5.2/helpers/color-background.md b/site/content/docs/5.2/helpers/color-background.md index c4174845c6..1aa9f1a54d 100644 --- a/site/content/docs/5.2/helpers/color-background.md +++ b/site/content/docs/5.2/helpers/color-background.md @@ -9,8 +9,6 @@ added: "5.2" ## Overview -{{< added-in "5.2.0" >}} - Color and background helpers combine the power of our [`.text-*` utilities]({{< docsref "/utilities/colors" >}}) and [`.bg-*` utilities]({{< docsref "/utilities/background" >}}) in one class. Using our Sass `color-contrast()` function, we automatically determine a contrasting `color` for a particular `background-color`. {{< callout warning >}} diff --git a/site/layouts/_default/docs.html b/site/layouts/_default/docs.html index 1a3f9c1a16..27314c37d0 100644 --- a/site/layouts/_default/docs.html +++ b/site/layouts/_default/docs.html @@ -16,9 +16,12 @@
- - View on GitHub - +
+ Added in v{{ .Page.Params.added }} + + View on GitHub + +

{{ .Title | markdownify }}

{{ .Page.Params.Description | markdownify }}

-- cgit v1.2.3