winx
June 18, 2020, 9:19am
1
Hi, how can I integrate an E-mail in imprint/footer, that is not visible to spam robots? I remember that there used to be a way to do that in HTML, but I don’t remember it exactly, I am afraid.
How did you do that?
And how did you integrate a form handler? For like a contact form?
Grob
June 18, 2020, 9:28am
2
Hi,
there is an excellent cloak email shortcode you can use in your content. You can also transform this into a partial and use it in your templates.
2 Likes
winx
June 18, 2020, 9:35am
3
So, as I don’t install via GIT, I just create a subfolder “hugo-cloak-email” in /themes and put the theme.yaml in that folder. Right?
Also, I need to add it as a theme, according to this:
theme = ["hugo-cloak-email", "my-theme"]
And add the shortcode
{{< cloakemail address="jane.doe@example.com" >}}
on my imprint-page, right?
Grob
June 18, 2020, 9:47am
4
Yes, this should work.
You can also work with the newish Hugo modules or just move the shortcode html file into your /shortcodes
folder.
1 Like
winx
June 18, 2020, 10:16am
5
I tried, but somehow it did not work. I used this solution instead: http://www.davidtulga.com/antispamemail.htm -> see: https://beck24.be/impressum/
system
Closed
June 20, 2020, 10:16am
6
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.