diff --git a/exampleSite/content/shortcodes/icon.md b/exampleSite/content/shortcodes/icon.md new file mode 100644 index 00000000..48d766cd --- /dev/null +++ b/exampleSite/content/shortcodes/icon.md @@ -0,0 +1,59 @@ +--- +authors: ["will-faught"] +categories: ["paige", "shortcodes"] +description: "Demonstration of the Paige icon shortcode." +tags: ["icon", "web font"] +title: "Icon Shortcode" +--- + +Paige provides a `paige/icon` shortcode for displaying a web font icon. + + + +## Class parameter + +Code: + +```go-text-template +

Icon: {{}}

+``` + +Result: + +

{{< paige/icon class="bi bi-github" >}}

+ +--- + +Code: + +```go-text-template +

Icon: {{}}

+``` + +Result: + +

{{< paige/icon class="bi bi-github" >}}

+ +## Name parameter + +Code: + +```go-text-template +

Icon: {{}}

+``` + +Result: + +

Icon: {{< paige/icon class="bi bi-github" name="GitHub" >}}

+ +## Url parameter + +Code: + +```go-text-template +

Icon: {{}}

+``` + +Result: + +

Icon: {{< paige/icon class="bi bi-github" url="https://github.com/willfaught/paige" >}}