Add email shortcode

This commit is contained in:
Will Faught
2023-04-25 17:45:12 -07:00
parent 29abec8f42
commit 36787b9fe7
3 changed files with 57 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ It's a versatile canvas that serves most web needs.
- Comments
- Customizable
- Dark color scheme
- E-mail protection
- Email shortcode
- Facebook sharing
- Figure shortcode
- Gallery shortcode
@@ -384,6 +384,27 @@ Parameters:
<dd>Optional. String. Hugo <a href="https://gohugo.io/content-management/syntax-highlighting/#highlight-shortcode">highlight options</a>.</dd>
</dl>
### Email
The `paige/email` shortcode hides e-mail addresses from robots.
```
{{< paige/email
address=""
text="" >}}
```
Inner content: None.
Parameters:
<dl>
<dt><code>address</code></dt>
<dd>Required. String. The e-mail address.</dd>
<dt><code>text</code></dt>
<dd>Required. String. The anchor text.</dd>
</dl>
### Figure
The `paige/figure` shortcode provides a figure.