I’ve read that mailto: is considered safe by Hugo, but when I try to include my email with [Email](mailto:my@email.com)
the result is that the generated .html just links to the baseURL of my site.
What am I missing here?
I’ve read that mailto: is considered safe by Hugo, but when I try to include my email with [Email](mailto:my@email.com)
the result is that the generated .html just links to the baseURL of my site.
What am I missing here?
I am unable to reproduce this behavior. This markdown:
[Email](mailto:my@email.com)
Produces this HTML:
<a href="mailto:my@email.com">Email</a>
Please provide a link to the source code repository for your project.
See Requesting Help.
The page in question is here:
The code for this page
# Contact
If you find errors or would like to collaborate, please reach out to me:
- {{< fa globe >}} [Web](https://site.org)
- {{< fa envelope >}} [Email](mailto:email@server.com)
- {{< fa key >}} [PGP](/pgp/key.asc)
{{< fa fingerprint >}} PGP Fingerprint:
Is this theme (Hugo Book) preventing this for some reason? Same code works in other Hugo sites.
That’s a question for the theme developer. Log an issue here:
https://github.com/alex-shpak/hugo-book/issues
The theme overrides default link rendering via layouts/_default/_markup/render-link.html
. That’s the first place I’d look for a problem.
Thanks. This was a good tip. Was related to an experimental portable links setting. Works great now.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.