|||

Code

All sections →
Tailwind and Web Craftsmanship March 3, 2024 Code & Links Rob articulates my feelings in this whole stupid “Tailwind vs Vanilla CSS” argument. Thanks Rob! Gatekeeping and framing in web development There’s Buttons with CSS March 1, 2024 Code & CSS Going back from all-utilities to plain CSS for styling buttons has made my life easier. Please note: I have zero interest in taking part in that Cannot Divide by Zero in Peak Picture Partial November 20, 2023 Code & Statamic When assets don’t contain valid images that can be processed by Glide (which can happen by migration or by not setting up proper sanitation rules Using the AVIF format for CSS background images August 1, 2023 Code Today I learned that browser support for the AVIF image format has become excellent, with every major browser except Edge supporting it. As I’m Workaround for Email Validation Issue in Statamic July 27, 2023 Code & Statamic Through a failed Horizon job I found out about the following: A user had entered an email address with an accidental space before the @ symbol. This Install a Starter Kit from local repo to get the latest Peak working in Statamic 4 beta May 5, 2023 Code & Statamic I needed to do this to install the latest Statamic Peak into the Statamic v4 beta. Clone the Starter Kit (read: Statamic Peak) Repo locally I also Set sensible validations for Statamic image uploads April 20, 2023 Code & Statamic By default, Statamic asset fields don’t validate size or file type. Recently I’ve had a bit of trouble with large image files clogging up the Git Render first heading inside Statamic Page Builder as `h1` April 20, 2023 Code & Statamic Say you have a headline field on various Page Builder elements, and one as a set of in a Bard field. Both should visually look the same. Remove Large Files from Git History April 19, 2023 Code I recently had the case of a client uploading huge tiff files (some larger than 100 MB) into Statamic image fields. Obviously, I should make this First List Item inside CSS Multi Column Layout is offset December 15, 2022 Code & CSS An annoying thing when using CSS Columns pops up every now and again: When having list items (<li>) inside the columns, the items in the first Presenting the Peak Starter Kit at the Statamic Meetup Berlin December 2, 2022 Code & Statamic Here’s a (re-)recording of the talk I gave yesterday (Dec 1, 2022) at the Statamic Meetup Berlin. It’s about why the Peak Starter Kit is a brilliant Statamic CMS talk at Frontend Meetup Freiburg 2022 November 12, 2022 Code & Statamic This week, I had the chance to tell some nice people why I enjoy working with Statamic CMS. As promised, here come the slides, a couple of links Install & Configure Laravel Horizon with Statamic and Run it on Forge September 13, 2022 Statamic & Code Follow these steps to use Laravel Horizon for Job Queuing in Statamic CMS when hosted with Laravel Forge. This guide assumes that Redis is already Setting Up Job Scheduling in Statamic May 30, 2022 Code & Statamic If a Job implements ShouldQueue the Job will be automatically added to the queue (as do both Shopify Statamic and Statamic Peak|Peak Social Image What Statamic’s SAVE_CACHED_IMAGES really does May 30, 2022 Code & Statamic I think I got SAVE_CACHED_IMAGES in Statamic wrong the whole time. I thought it’s about whether Glide-generated images are kept when clearing Setup Statamic Static Caching April 11, 2022 Code & Statamic Setting up Static Caching in Statamic isn’t too hard and brings a huge performance boost. Here are the steps I had to take to enable it both locally Make Alpine 3 support legacy browsers April 7, 2022 Code Today I learned that AlpineJS 3.x uses queueMicrotask — and that that’s an API not supported in Firefox < 69 and Safari < 12.1 (see caniuse for full