Introducing Peritel , a brand new nostalgia-fuelled retro typeface, by yours truly. Being unsatisfied with the heading typeface used on my Toggle Vintage theme Vintage theme Vintage theme , I set out to find the perfect typeface encapsulating the ‘80s and ‘90s, especially computer (entertainment) systems, but there was always something that fell short: boring s , ugly r , or way-too-sharp angles.…
I spent hours chasing down an issue in my 11ty a.k.a. Eleventy a.k.a. BuildAwesome setup, specifically during local development, which I thought was a caching issue, without knowing where: any time I would update a JS file, I’d have to stop and restart my local development server. Not the end of the world, but not great either. I precompile my JS and CSS files from an /_assets folder into an…
I don’t know if you play video games, but it’s likely you enjoy games in one form or another. Maybe you play a cozy game on your phone, a card game on your work computer (definitely only during breaks), or a cute adventure game on your gaming console. And table top games count, too, of course! Note There is no such thing as a real gamer or not, only gamers and gatekeepers. I mostly play on…
I recently worked on some “accordion” component with a custom marker to indicate open and closed states. I had it set up so the marker, a chevron, would rotate by 180 degrees when the component was in its open state. Add a CSS transition (when motion preferences allow it), job done. But… it would animate backwards upon closing, “rewind” so to speak, which is exactly how CSS should work, but I…
Another git snippet I use frequently, git ketchup {BRANCH_NAME} . It’s not catchup because that may be a real command. Like switcheroo , using a silly name (nearly) guarantees there won’t be naming collisions with real git commands. .gitconfig .gitconfig [ alias ] ketchup = "!f(){ git fetch origin ${1} : ${1} ; }; f" I use a graphical user interface (a.k.a. a GUI, mine is Fork ) and there’s no…
Heads up This is a long post, but I share all my code in the tl;dr at the end! Last week, I played with the idea of showing statistics related to my running below the other site-related stats . I’ve only been running since some time in 2022, which wouldn’t be such a big thing if it weren’t for the fact I had never been athletic in my life before (except when forced to, i.e. in P.E class, and to…
I built a tool to prepare FFmpeg commands because despite using it nearly every day, I still forget syntax details. If I were really invested, I’d create some app with a file picker that does this and runs the command for you, but 1) that probably exists, and 2) I do not have the knowledge to build such an app! FFmpeg is a beast and can do so many cool things, but I am keeping it simple, in that…
I saw an exchange over on Mastodon about a small bit of the State of JS results interface. Paweł noticed a little movement on a table cell label that seemed glitchy. Sacha described it as an issue due to a reveal effect: when a label would be longer than the table cell it was in, hovering it would scroll it so you could read the whole thing, but short labels were also affected. So I inserted…
Another year has gone by. I guess Smash Mouth was right: the years start comin’ and they don’t stop comin’. We can make quick eye contact and nod in understanding instead of discussing how messy the world’s goings-on have been, or how life has been tiring, so I’ll skip over all that stuff and keep it light-hearted. For the most part, this is a media diet rather than a weeknote-formatted…
Preserving the tiny underline is nearly effortless with CSS pseudo-elements. Read full article: Keeping link underline styles around inline code with padding .
Yo dawg, I heard you liked pagination, so I added pagination inside your paginated pages, so you can paginate while you paginate. Read full article: Double-Pagination in Eleventy .
How I implemented Notion and PSN APIs in my Eleventy build for my Now and Gaming pages. Read full article: Leveraging APIs like Notion with a nice caching system .
Avoid false positives when using :not() to exclude ancestors from a scope. Read full article: Select an element which doesn’t descend from another in CSS .
Pre-compile some reused assets to avoid repeating the same operation. Read full article: Eleventy within Eleventy to compile when you compile: precompiling reused assets .
Using chained CSS transforms to get a rotation without rotating the element itself. Read full article: Rotating floating animation with chained transforms .
I wrote an article on CSS-Tricks about using a --var: ; trick from Lea Verou to define theme variables only once, when you need to respect a user-preference media query as well as CSS classes. Since you can’t do both in a single declaration block, you usually repeat these theme variables… but with this little hack, no need! CSS --color : var ( --light , orchid ) var ( --dark , rebeccapurple ) ;…
Use a collection of utilities to form components without additional CSS. Read full article: Building and maintaining components from utility classes in Eleventy .