You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not a standalone theme. It is a [Hugo](https://gohugo.io) theme component providing a shortcode: `cloakemail` to cloak any e-mail address from spamming bots.
6
+
7
+
## Usage
8
+
9
+
1. Add the `hugo-cloak-email` as a submodule to be able to get upstream changes later `git submodule add https://github.com/martignoni/hugo-cloak-email.git themes/hugo-cloak-email`
10
+
2. Add `hugo-cloak-email` as the left-most element of the `theme` list variable in your site's or theme's configuration file `config.yaml` or `config.toml`. Example, with `config.yaml`:
11
+
```yaml
12
+
theme: ["hugo-cloak-email", "my-theme"]
13
+
```
14
+
or, with `config.toml`,
15
+
```toml
16
+
theme = ["hugo-cloak-email", "my-theme"]
17
+
```
18
+
3. In your site, use the shortcode, this way:
19
+
```go
20
+
{{< cloakemail "john.doe@example.com" >}}
21
+
```
22
+
23
+
### Credits
24
+
25
+
This theme component was possible because of the work done by
26
+
[@danieka](https://github.com/danieka) in [this pull request](https://github.com/gohugoio/hugo/pull/3935).
0 commit comments