diff --git a/README.md b/README.md index 8b84c47f..b2cb4564 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ It's a versatile canvas that serves most web needs. - Gallery shortcode - Header links - Icon shortcode +- Icons shortcode - Image shortcode - Landing page - Languages @@ -541,6 +542,20 @@ Parameters:
Optional. String. URL. Example is https://github.com/willfaught/paige. E-mails in URLs with a mailto: scheme are protected from web crawlers.
+### Icons + +The `paige/icons` shortcode presents a sequence of `paige/icon`. + +``` +{{< paige/icons >}} + +{{< /paige/icons >}} +``` + +Inner content: The sequence of `paige/icon`. + +Parameters: None. + ### Image The `paige/image` shortcode provides a figure with an image. diff --git a/exampleSite/content/_index.md b/exampleSite/content/_index.md index 5c3a8ff3..81a4b0d0 100644 --- a/exampleSite/content/_index.md +++ b/exampleSite/content/_index.md @@ -27,6 +27,6 @@ Paige is designed to put your content front and center, avoiding the typical clu Install it now.

-
- {{< paige/icon class="bi bi-github" name="GitHub" url="https://github.com/willfaught/paige" >}} -
+{{< paige/icons >}} +{{< paige/icon class="bi bi-github" name="GitHub" url="https://github.com/willfaught/paige" >}} +{{< /paige/icons >}} diff --git a/layouts/shortcodes/paige/icons.html b/layouts/shortcodes/paige/icons.html new file mode 100644 index 00000000..68e26ce9 --- /dev/null +++ b/layouts/shortcodes/paige/icons.html @@ -0,0 +1,3 @@ +
+ {{ .Inner }} +