Hugo source for my blog
Go to file
2019-02-05 21:36:47 +01:00
layouts/shortcodes Add files to repository 2019-02-05 21:36:47 +01:00
LICENSE Initial commit 2019-02-05 21:35:37 +01:00
README.md Add files to repository 2019-02-05 21:36:47 +01:00
theme.yaml Add files to repository 2019-02-05 21:36:47 +01:00

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

  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
  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:
    theme: ["hugo-cloak-email", "my-theme"]
    
    or, with config.toml,
    theme = ["hugo-cloak-email", "my-theme"]
    
  3. In your site, use the shortcode, this way:
    {{< cloakemail "john.doe@example.com" >}}
    

Credits

This theme component was possible because of the work done by @danieka in this pull request.