diff --git a/src/.htaccess.njk b/src/.htaccess.njk index febf04ab..46c01f18 100644 --- a/src/.htaccess.njk +++ b/src/.htaccess.njk @@ -14,6 +14,9 @@ Header set Cache-Control "no-cache, public" RewriteEngine on +# Redirect obfuscated email links to mailto link +RewriteRule ^email/$ "mailto:{{ sitemeta.siteAuthor.email }}" [R=301,L] + # Block bad bots RewriteCond %{HTTP_USER_AGENT} ({{ robots.htaccess }}) [NC] RewriteRule .* https://nocommercialuse.org/ [L] \ No newline at end of file diff --git a/src/_data/sitemeta.js b/src/_data/sitemeta.js index 4688fb79..70a5d1f4 100644 --- a/src/_data/sitemeta.js +++ b/src/_data/sitemeta.js @@ -4,7 +4,7 @@ export const siteUrl = "https://" + siteDomain || "http://localhost:8080"; export const siteAuthor = { name: "Leilukin", email: "contact@leilukin.com", - emailEncoded: "contact@leilukin.com", + emailEncoded: 'contact@leilukin.example.com', url: siteUrl + "/about" }; export const siteLanguage = "en"; diff --git a/src/_includes/global/footer.njk b/src/_includes/global/footer.njk index cc359977..60ebfa11 100644 --- a/src/_includes/global/footer.njk +++ b/src/_includes/global/footer.njk @@ -1,7 +1,7 @@