clubmate.fi

A good[ish] website

Web development blog, loads of UI and JavaScript topics

How to disable Gatsby telemetry

Telemetry is a clean sounding euphemism for tracking. Gatsby gives you a notice when you first start it: Gatsby collects anonymous usage…

Doing more complex conditional logic, getting more than two different values

Here’s how to get stuff with JavaScript. This is kind of basic but, boolean logic can handle two values: true and false , or... potato or…

Position sticky in CSS, with examples

Before position: sticky , we had to finesse around with scroll listeners and bounding box measurements, ugh. But nowadays position: sticky…

Sticky footer done with simple CSS

Here’s how to do a sticky footer the right way™ Sticky footer refers to a technique where the footer is pushed all the way to the bottom…

Super simple static site deployment bash script, that keeps Git in sync

An uncomplicated deploy script that doesn’t use Git, but still keeps your upstream Git repo up-to-date with the live server. I’ve been using…

Block bad bots in your robots.txt

This post shows how to block bad bots in your robots.txt file. And it tries to figure out if it does anything? Spoiler alert, probably not…

What does the preload attribute actually do in the HTML video element?

The html video element’s preload attribute can have three values: metadata , auto , or none . This post explains what they do and which…

Copying text into the system’s clipboard with JavaScript

Here’s a post that looks into how to programmatically copy text from the DOM using JavaScript. I’m going to use React as a library, but this…

Find out what takes space on the hard drive, in a Linux/Unix machine

I was just struggling with a machine that was totally out of space. Here’s some ways to figure out what is hogging the storage real estate…

New blog. Test post, ignore

I just did an update on this website (finally), and churned out some new posts. This post will act as a primitive style guide and as a…

  • © 2022 Antti Hiljá
  • About
  • All rights reserved yadda yadda.
  • I can put just about anything here, no one reads the footer anyways.
  • I love u!