Encode email address on page with HTML entities

This commit is contained in:
Helen Chong 2024-10-24 10:44:10 +08:00
parent 2da518a4bb
commit 1814596c85
8 changed files with 8 additions and 7 deletions

View File

@ -4,6 +4,7 @@ export const siteUrl = "https://" + siteDomain || "http://localhost:8080";
export const siteAuthor = { export const siteAuthor = {
name: "Leilukin", name: "Leilukin",
email: "contact@leilukin.com", email: "contact@leilukin.com",
emailEncoded: "contact@leilukin.com",
url: siteUrl + "/about" url: siteUrl + "/about"
}; };
export const siteLanguage = "en"; export const siteLanguage = "en";

View File

@ -1,7 +1,7 @@
<footer class="footer"> <footer class="footer">
<p> <p>
<svg class="inline-icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48L48 64zM0 176L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-208L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z"/></svg> <svg class="inline-icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48L48 64zM0 176L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-208L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z"/></svg>
<a href="mailto:{{ sitemeta.siteAuthor.email }}">Contact me by email</a> (<a href="https://useplaintext.email/">plain text email</a> encouraged) <a href="mailto:{{ sitemeta.siteAuthor.emailEncoded | safe }}">Contact me by email</a> (<a href="https://useplaintext.email/">plain text email</a> encouraged)
</p> </p>
{%- block footerContent %} {%- block footerContent %}

View File

@ -19,7 +19,7 @@ eleventyComputed:
<p>You can browse all my contents published on this site through the <a href="/archive">Archive</a> page, or the <a href="/categories">Content Categories</a> page. You can use the <a href="/sitemap">site map</a> to navigate this website.</p> <p>You can browse all my contents published on this site through the <a href="/archive">Archive</a> page, or the <a href="/categories">Content Categories</a> page. You can use the <a href="/sitemap">site map</a> to navigate this website.</p>
<p>Feel free to drop a message and say hi on <a href="/guestbook">my guestbook</a>! You can also contact me by <a href="mailto:{{sitemeta.siteAuthor.email}}">sending me an email</a>. Using <a href="https://useplaintext.email/">plain text email</a> is encouraged.</p> <p>Feel free to drop a message and say hi on <a href="/guestbook">my guestbook</a>! You can also contact me by <a href="mailto:{{ sitemeta.siteAuthor.emailEncoded | safe }}">sending me an email</a>. Using <a href="https://useplaintext.email/">plain text email</a> is encouraged.</p>
<p>Read the <a href="/about">About</a> page to learn more about this site and its webmaster.</p> <p>Read the <a href="/about">About</a> page to learn more about this site and its webmaster.</p>

View File

@ -10,7 +10,7 @@ eleventyNavigation:
**Please make sure you have read and followed my instructions before asking for help or reporting any issue with my mods!** **Please make sure you have read and followed my instructions before asking for help or reporting any issue with my mods!**
If your issue is not addressed on my mod's page, ask for support or report issues with my mods on the mod's page on Deadly Stream, Nexus Mods or [send me an email]({{sitemeta.siteAuthor.email}}). If your issue is not addressed on my mod's page, ask for support or report issues with my mods on the mod's page on Deadly Stream, Nexus Mods or [send me an email]({{ sitemeta.siteAuthor.emailEncoded | safe }}).
{% from "global/macros.njk" import modEntry %} {% from "global/macros.njk" import modEntry %}

View File

@ -10,7 +10,7 @@ eleventyNavigation:
**Please make sure you have read and followed my instructions before asking for help or reporting any issue with my mods!** **Please make sure you have read and followed my instructions before asking for help or reporting any issue with my mods!**
If your issue is not addressed on my mod's page, ask for support or report issues with my mods on the mod's page on Deadly Stream, Nexus Mods or [send me an email]({{sitemeta.siteAuthor.email}}). If your issue is not addressed on my mod's page, ask for support or report issues with my mods on the mod's page on Deadly Stream, Nexus Mods or [send me an email]({{ sitemeta.siteAuthor.emailEncoded | safe }}).
{% from "global/macros.njk" import modEntry %} {% from "global/macros.njk" import modEntry %}

View File

@ -54,7 +54,7 @@ I am also autistic, so I use this website as a platform to catalogue my interest
Leilukin is not my real name, but it is an internet pseudonym that I have used since I was a teenager, so the name has become my online identity, and I prefer to go by Leilukin in informal online spaces. Leilukin is not my real name, but it is an internet pseudonym that I have used since I was a teenager, so the name has become my online identity, and I prefer to go by Leilukin in informal online spaces.
You can contact me via email: {{ sitemeta.siteAuthor.email }}. Using [plain text email](https://useplaintext.email/) is encouraged. You can contact me via email: {{ sitemeta.siteAuthor.emailEncoded | safe }}. Using [plain text email](https://useplaintext.email/) is encouraged.
[Check out my Now page](/now) to learn what I am doing right now. [Check out my Now page](/now) to learn what I am doing right now.

View File

@ -20,7 +20,7 @@ eleventyComputed:
id="guestbookForm" id="guestbookForm"
titleText="Sign My Guestbook" titleText="Sign My Guestbook"
encodedPath="MTI0MzI0MTMxMDY2NDY1OTA3Ni9KUU52ajM2OUJfZDhEaXB5b29VcllBN2dTZmQwMWxCY1ViNy1VNDVPVkxYa0hvRWtNRmRqclk1NTVCLVdaWUc5Q3dMMA==" encodedPath="MTI0MzI0MTMxMDY2NDY1OTA3Ni9KUU52ajM2OUJfZDhEaXB5b29VcllBN2dTZmQwMWxCY1ViNy1VNDVPVkxYa0hvRWtNRmRqclk1NTVCLVdaWUc5Q3dMMA=="
fallbackEmail="{{ sitemeta.siteAuthor.email }}" fallbackEmail="{{ sitemeta.siteAuthor.emailEncoded | safe }}"
></gw-comment-form> ></gw-comment-form>
<noscript> <noscript>
<div class="inline-banner" style="margin: 2em 0;"> <div class="inline-banner" style="margin: 2em 0;">

View File

@ -39,4 +39,4 @@ In addition, I test the accessibility of my website manually by navigating with
## Feedback ## Feedback
Feedback from disabled and neurodivergent people are welcome. You can [contact me via email](mailto:{{sitemeta.siteAuthor.email}}) for feedbacks and suggestions for improving the accessibility of this site. Feedback from disabled and neurodivergent people are welcome. You can [contact me via email](mailto:{{ sitemeta.siteAuthor.emailEncoded | safe }}) for feedbacks and suggestions for improving the accessibility of this site.