Tagged “eleventy”
-
Solving my Image Dimension Problem with an Eleventy Transform
When migrating from WordPress to Eleventy, I wanted to automatically add width and height attributes to my images for better performance and layout stability. The official Eleventy image plugin felt overcomplicated for my needs, so I built a simple transform that inspects image files and adds dimensions to HTML img tags during the build process. ...
-
How to Add Playwright Automated Tests to an Eleventy Static Blog
Now that this blog has moved to the Eleventy system, I wanted to add some simple smoke tests to make sure the build process is working correctly and catch me if I break anything. I decided to go with Playwright because we use it at work and it's been on my to-learn list. Everything worked well, and I achieved good test coverage with 10 different tests, each containing multiple assertions. The trickiest part was making it all run correctly in the GitHub Actions pipelines. ...
-
Migrating WordPress To Eleventy
After 11 years on WordPress, I moved this blog to Eleventy (11ty) and I'm very happy with the results. These are my notes on the background and process for anyone going through a similar move. ...
-
Proper Sitemap Update Dates for Eleventy
Sitemaps are the recommended way to ensure search engines understand all the pages on your site. This site is pretty simple and I'm not sure whether a sitemap is strictly needed, but I had one with WordPress and I'd like to keep it going. One important piece for this 23 year old blog is signalling when old posts are updated, so I had to make sure my new Eleventy-powered site handled that piece correctly. ...
-
Migrated to Static Site (Eleventy)
After a nice 11 year run on WordPress I have spent the last few weeks migrating this site to the Eleventy (11ty) static site generator and switched over on the 24th. WordPress was fun to learn and had some nice features, but in the end was overkill for what I needed and I tired of keeping up with version upgrades and recovering from spammers hacking my site. ...
See all tags.