Skip to content

Latest commit

 

History

History
80 lines (56 loc) · 1.71 KB

index.md

File metadata and controls

80 lines (56 loc) · 1.71 KB
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
vendor name
bs
asterisk
false
false
2024-05-01 12:00:05 +0800
false
Docs
Module
Encode
Email
Telephone number
HugoMods

{{< module "github.com/hugomods/encoder" >}}

Shortcodes

encode Shortcode

encode Shortcode Syntax

{{</* encode [text] */>}}

{{% hugo/shortcode-params data="code/encode-params.yaml" heading="encode Shortcode Parameters" headingStartLevel=4 %}}

Encode Plain Email

{{% page-resource-content "code/example-encode-email" %}}

Encode Plain Telephone Number

{{% page-resource-content "code/example-encode-telephone" %}}

encode-link Shortcode

encode-link Shortcode Syntax

{{</* encode-link [protocol] [target] [text] */>}}

{{% hugo/shortcode-params data="code/encode-link-params.yaml" heading="encode-link Shortcode Parameters" headingStartLevel=4 %}}

encode-link Email Examples

{{< page-resource-content "code/example-encode-link-email" >}}

encode-link Telephone Number Examples

{{< page-resource-content "code/example-encode-link-telephone" >}}

encode-email Shortcode

A shorthand of encode-link for email address that without requirements of specifying the protocol parameter.

{{</* encode-email [target] [text] */>}}

encode-tel Shortcode

A shorthand of encode-link for telephone number that without requirements of specifying the protocol parameter.

{{</* encode-tel [target] [text] */>}}