fixing email

master
Jeff Clement 6 months ago
parent 7d7054ed61
commit 21b1b057cc
Signed by: jclement
GPG Key ID: 3BCB43A3F0E1D7DA
  1. 2
      config/_default/languages.en.toml
  2. 2
      content/about/index.md
  3. 17
      layouts/partials/extend-footer.html
  4. 2
      static/jquery.min.js

@ -18,7 +18,7 @@ dateFormat = "2 January 2006"
#headline = "Code, Wood, Unicycles and Radio"
#bio = "A little bit about you"
links = [
{ email = "mailto:jeff@erraticbits.ca" },
{ email = "mailto:jeff%20at%20eraticbits%20dot%20ca" },
# { link = "https://link-to-some-website.com/" },
# { amazon = "https://www.amazon.com/hz/wishlist/ls/wishlist-id" },
# { apple = "https://www.apple.com" },

@ -23,7 +23,7 @@ My name is Jeff Clement.
<tr>
<th>E-Mail:</th>
<td><a href="#" class="mail-link" data="jeff at erraticbits dot ca"><span class="mail-addr"></span></a></td>
<td><a href="mailto:jeff%20at%20erraticbits%20dot%20ca"><span class="mail-addr"></span></a></td>
</tr>
<tr>

@ -1 +1,16 @@
<script async src="https://ackee.erraticbits.ca/tracker.js" data-ackee-server="https://ackee.erraticbits.ca" data-ackee-domain-id="73c2f07b-567a-44e7-996f-8410b1b65d41"></script>
<script async src="https://ackee.erraticbits.ca/tracker.js" data-ackee-server="https://ackee.erraticbits.ca" data-ackee-domain-id="73c2f07b-567a-44e7-996f-8410b1b65d41"></script>
<script src="/jquery.min.js"></script>
<script>
$(function() {
$("a").each(function(_, el) {
var addr = $(el).attr("href");
if (addr.startsWith("mailto:")) {
addr = addr.replace("%20at%20","@").replaceAll("%20dot%20", ".");
$(el).find(".mail-addr").text(addr.substr(7));
$(el).attr("href", addr);
}
});
});
</script>

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save