Made some tweaks to my eleventy image plugin config! Basically, making it so that my gifs are kept intact/animated, and also making sure the responsive sizing is up and running.
It took me a little while to figure out the responsive sizing. This is what my ImageTransform config looks like now :)
eleventyConfig.addPlugin(eleventyImageTransformPlugin, {
widths: [200, 600, 800],
formats: ["png", "gif", "webp"],
formatFiltering: ["transparent", "animated"],
sharpOptions: {
animated: true,
},
htmlOptions: {
imgAttributes: {
alt: "", // required
sizes: [200, 600, 800],
loading: "lazy",
decoding: "async"
},
fallback: "smallest"
}
});
I still feel a little intimidated by my config.cjs file as a whole, but I think my understanding of it is “good enough” for now!
But yeah um. I think it’s ready. The website, I mean. I think my 11ty migration can be considered “complete”. Very exciting!! aaa!!!
I wrote up like a little announcement post for it, and there was a lot of stuff I edited out because I didn’t want it to be super long or go on tooooo many tangents, but I was looking back on these changelogs and. What do you mean I’ve been working on this for 7~8 months now???
There’s still lots of stuff I want to add to the site and improve about it, but I’m very happy to have reached this point! I’ll probably just take my time with the other stuff.
I was going to copy over the remaining todos, but it’d literally look like this:
…the nice-to-haves:
- [ ] Project pages for Game Projects
- [ ] Project pages for Archived Projects
- [ ] Extra sketchbooks (OC-2023, M)
- [ ] Cute header art for the main pages!
Things to fix:
- [x] Image plugin seems to have broken our GIFs… See the blender projects.
I’m going to try to run a proper build of the site now. And then if that all works out ok, I’ll upload it to my webhost. If you’re reading this, I’ve probably succeeded! :D
I should probably make an actual git repo for the site too. It’s a pretty big project now, and getting some proper version control set up shouldn’t be that hard/take that long. My gamedev adventures have gotten me pretty comfy using git!