title | linkTitle | description | nav_weight | nav_icon | featured | pinned | date | draft | series | categories | tags | authors | images | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Hugo Encoder Module |
Encoder |
Encode text to protect email address and telephone number from spam bots. |
1000 |
|
false |
false |
2024-05-01 12:00:05 +0800 |
false |
|
|
|
|
{{< module "github.com/hugomods/encoder" >}}
{{</* encode [text] */>}}
{{% hugo/shortcode-params data="code/encode-params.yaml" heading="encode
Shortcode Parameters" headingStartLevel=4 %}}
{{% page-resource-content "code/example-encode-email" %}}
{{% page-resource-content "code/example-encode-telephone" %}}
{{</* encode-link [protocol] [target] [text] */>}}
{{% hugo/shortcode-params data="code/encode-link-params.yaml" heading="encode-link
Shortcode Parameters" headingStartLevel=4 %}}
{{< page-resource-content "code/example-encode-link-email" >}}
{{< page-resource-content "code/example-encode-link-telephone" >}}
A shorthand of encode-link
for email address that without requirements of specifying the protocol
parameter.
{{</* encode-email [target] [text] */>}}
A shorthand of encode-link
for telephone number that without requirements of specifying the protocol
parameter.
{{</* encode-tel [target] [text] */>}}