Tweak email link rewrite rule

This commit is contained in:
Helen Chong 2024-12-10 18:30:12 +08:00
parent c53e7c90b2
commit 522ad5316d
3 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ Header set Cache-Control "no-cache, public"
RewriteEngine on RewriteEngine on
# Redirect obfuscated email links to mailto link # Redirect obfuscated email links to mailto link
RewriteRule ^email/$ "mailto:{{ sitemeta.siteAuthor.email }}" [R=301,L] RewriteRule ^/email/$ mailto:{{ sitemeta.siteAuthor.email }} [R=301,L]
# Block bad bots # Block bad bots
RewriteCond %{HTTP_USER_AGENT} ({{ robots.htaccess }}) [NC] RewriteCond %{HTTP_USER_AGENT} ({{ robots.htaccess }}) [NC]

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 rel="nofollow, noindex" href="mail/">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 rel="nofollow, noindex" href="/mail/">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

@ -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.emailEncoded | safe }}](email/){rel="nofollow, noindex"}. Using [plain text email](https://useplaintext.email/) is encouraged. You can contact me via email: [{{ sitemeta.siteAuthor.emailEncoded | safe }}](/email/){rel="nofollow, noindex"}. 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.