From 8aa73c6bbac80f81a2c7dd6f9a7fe55a1e1d40c3 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Wed, 22 Mar 2023 21:37:09 -0700 Subject: [PATCH] Document hero shortcode --- README.md | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/README.md b/README.md index e58b897e..b4dacad2 100644 --- a/README.md +++ b/README.md @@ -501,6 +501,53 @@ Parameters:
Optional. String. CSS value. Image width.
+### Hero + +The `paige/hero` shortcode provides a hero section. + +``` +{{< paige/hero + alt="My alt" + header="My header" + height="10rem" + image="https://github.com/willfaught/paige" + imageclass="rounded-4 shadow" + maxheight="10rem" + maxwidth="10rem" + title="My title" + width="10rem" +>}} +My content +{{< /paige/hero >}} +``` + +Inner content: Optional. String. Markdown. The body. + +Parameters: + +
+
alt
+
Optional. String. Plain text. Image alt.
+
header
+
Optional. String. Markdown. The header.
+
height
+
Optional. String. CSS value. Image height.
+
image
+
Optional. String. URL. Image source.
+
imageclass
+
Optional. String. Class attribute value.
+
maxheight
+
Optional. String. CSS value. Image maximum height. Default is 20rem.
+
maxwidth
+
Optional. String. CSS value. Image maximum width.
+
stretch
+
Optional. Boolean. Whether to stretch the image fully horizontally.
+
title
+
Optional. String. Plain text. Image title.
+
width
+
Optional. String. CSS value. Image width.
+
+ ### Icon The `paige/icon` shortcode provides a web font icon.