From 522f93103471a6f67c69c1e7d43fd0eb5e7646a6 Mon Sep 17 00:00:00 2001
From: Will Faught
Date: Sat, 8 Apr 2023 15:19:36 -0700
Subject: [PATCH] Add icons shortcode
---
README.md | 15 +++++++++++++++
exampleSite/content/_index.md | 6 +++---
layouts/shortcodes/paige/icons.html | 3 +++
3 files changed, 21 insertions(+), 3 deletions(-)
create mode 100644 layouts/shortcodes/paige/icons.html
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 }}
+