~acdw/old-blog-content

13192c6b3ae356fd34168d524aac115173ec6a8d — Case Duckworth 1 year, 2 months ago 5ef2dc9
Remove email from easy-to-spam locations

I've been getting so much spam lately.
Hopefully changing my email to being generated with js will help.
Fingers crossed!
4 files changed, 29 insertions(+), 6 deletions(-)

M index.html
M pages/contact.md
M static/css/style.scss
M templates/_sidenav.html
M index.html => index.html +13 -1
@@ 48,7 48,7 @@ bodyclass: index
                <header>get in touch</header>
                <ul>
                    <div class="lgroup direct">
                        <li><a href="m&#97;ilto:&#97;&#99;dw&#64;&#97;&#99;dw&#46;net">
                        <li><a href="#" id=email>
                                email</a></li>
                        <li><a href="xmpp://&#97;&#99;dw&#64;404.&#99;ity">
                                xmpp</a></li></div>


@@ 85,4 85,16 @@ bodyclass: index
        </nav>
    </aside>
</div>
<script>
function expand_mail() {
    const email = document.getElementById('email');
    var mail = 'm';
    pairs = ['ai', 'lt', 'o:', 'ac', 'dw', '@a', 'cd', 'w.', 'ne', 't'];
    for (var p = 0; p < pairs.length; p++) {
        mail += pairs[p];
    }
    email.href = mail;
}
window.onload = expand_mail;
</script>
$partial("templates/_footer.html")$

M pages/contact.md => pages/contact.md +15 -2
@@ 10,7 10,8 @@ I feel like I've done that too.

Some of them are listed here.

- [email] me (please, no spambots or MLMs).
- <a href='#' id=email>email</a> me
  me (please, no spambots or MLMs).
- @ me on [Mastodon] or [Twitter].
- clone me on [Github], [Gitlab], or [sourcehut].
- [feel me] on [tilde.town].


@@ 18,7 19,6 @@ Some of them are listed here.
  or have a more stimulating conversation with me on [Tildes][tildes.net].
- verify my identity on [Keybase].

[email]: mailto:acdw@acdw.net
[Mastodon]: <https://writing.exchange/@acdw> {rel=me}
[Twitter]: <https://twitter.com/caseofducks>
    (Though I never use it.) {rel=me}


@@ 37,3 37,16 @@ Some of them are listed here.

[Keybase]: <https://keybase.io/acdw>
    (I'm not actually sure what it's for or what it does.) {rel=me}

<script>
function expand_mail() {
    const email = document.getElementById('email');
    var mail = 'm';
    pairs = ['ai', 'lt', 'o:', 'ac', 'dw', '@a', 'cd', 'w.', 'ne', 't'];
    for (var p = 0; p < pairs.length; p++) {
        mail += pairs[p];
    }
    email.href = mail;
}
window.onload = expand_mail;
</script>

M static/css/style.scss => static/css/style.scss +1 -1
@@ 1,5 1,5 @@
/* SCSS for acdw.net */
/* by Case Duckworth <acdw@acdw.net> */
/* by Case Duckworth */
/* vim: fdm=marker
 * */


M templates/_sidenav.html => templates/_sidenav.html +0 -2
@@ 26,8 26,6 @@
        </div>
        <div class="lgroup">
        <li><a href="$source$">source</a></li>$endif$
        $if(comment)$<li>
            <a href="$comment$">leave a comment</a></li>$endif$
        </div>
    </ul>
    $else$