From 23d42203f60849f8441f79fadb9923752be7659f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20D=C3=A9ramond?= Date: Wed, 19 Oct 2022 11:19:27 +0200 Subject: [PATCH] Docs: use 'added' page information to display a tag on top of the pages --- site/content/docs/5.2/helpers/color-background.md | 2 -- site/layouts/_default/docs.html | 9 ++++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/site/content/docs/5.2/helpers/color-background.md b/site/content/docs/5.2/helpers/color-background.md index c4174845c666..1aa9f1a54dc6 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 1a3f9c1a1661..27314c37d0b6 100644 --- a/site/layouts/_default/docs.html +++ b/site/layouts/_default/docs.html @@ -16,9 +16,12 @@
Browse docs
- - View on GitHub - +
+ Added in v{{ .Page.Params.added }} + + View on GitHub + +

{{ .Title | markdownify }}

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