Add icons shortcode
This commit is contained in:
15
README.md
15
README.md
@@ -35,6 +35,7 @@ It's a versatile canvas that serves most web needs.
|
|||||||
- Gallery shortcode
|
- Gallery shortcode
|
||||||
- Header links
|
- Header links
|
||||||
- Icon shortcode
|
- Icon shortcode
|
||||||
|
- Icons shortcode
|
||||||
- Image shortcode
|
- Image shortcode
|
||||||
- Landing page
|
- Landing page
|
||||||
- Languages
|
- Languages
|
||||||
@@ -541,6 +542,20 @@ Parameters:
|
|||||||
<dd>Optional. String. URL. Example is <code>https://github.com/willfaught/paige</code>. E-mails in URLs with a <code>mailto:</code> scheme are protected from web crawlers.</dd>
|
<dd>Optional. String. URL. Example is <code>https://github.com/willfaught/paige</code>. E-mails in URLs with a <code>mailto:</code> scheme are protected from web crawlers.</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
|
### 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
|
### Image
|
||||||
|
|
||||||
The `paige/image` shortcode provides a figure with an image.
|
The `paige/image` shortcode provides a figure with an image.
|
||||||
|
@@ -27,6 +27,6 @@ Paige is designed to put your content front and center, avoiding the typical clu
|
|||||||
<a class="lead" href="https://github.com/willfaught/paige">Install it now.</a>
|
<a class="lead" href="https://github.com/willfaught/paige">Install it now.</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="column-gap-3 d-flex display-6 justify-content-center mb-3">
|
{{< paige/icons >}}
|
||||||
{{< paige/icon class="bi bi-github" name="GitHub" url="https://github.com/willfaught/paige" >}}
|
{{< paige/icon class="bi bi-github" name="GitHub" url="https://github.com/willfaught/paige" >}}
|
||||||
</div>
|
{{< /paige/icons >}}
|
||||||
|
3
layouts/shortcodes/paige/icons.html
Normal file
3
layouts/shortcodes/paige/icons.html
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<div class="column-gap-3 d-flex display-6 justify-content-center mb-3">
|
||||||
|
{{ .Inner }}
|
||||||
|
</div>
|
Reference in New Issue
Block a user