mirror of
https://github.com/msfjarvis/msfjarvis.dev.git
synced 2024-06-03 04:18:56 +05:30
Hugo source for my blog
layouts/shortcodes | ||
.gitignore | ||
LICENSE | ||
README.md | ||
theme.yaml |
hugo-cloak-email
About
This is not a standalone theme. It is a Hugo theme component providing a shortcode: cloakemail
to cloak any e-mail address from spamming bots.
Usage
- Add the
hugo-cloak-email
as a submodule to be able to get upstream changes latergit submodule add https://github.com/martignoni/hugo-cloak-email.git themes/hugo-cloak-email
- Add
hugo-cloak-email
as the left-most element of thetheme
list variable in your site's or theme's configuration fileconfig.yaml
orconfig.toml
. Example, withconfig.yaml
:
or, withtheme: ["hugo-cloak-email", "my-theme"]
config.toml
,theme = ["hugo-cloak-email", "my-theme"]
- In your site, use the shortcode, this way:
{{< cloakemail "john.doe@example.com" >}}
Credits
Copyright © 2019 onwards, Nicolas Martignoni nicolas@martignoni.net.
This theme component was possible because of the work done by @danieka in this pull request.