We'll, I've been thinking a lot about photos, as you might have noticed. A few months ago I published Memories, my photo-blog-kinda-thing, and I loved it, but as it was a separate project from this website, I ignored it most of the time.
One of the things that I never liked about Memories was the fact that the website was on one place, and my photos in another. That was necessary in order to upload them directly from a web interface.
Turns out that there are things more valuable for me than uploading from a web interface:
- Having everything together (and local)
- A known publishing process
So, after reading a comment from Plat I decided to integrate the whole thing into this website. Now everything's a single integrated thing.
You can see above a menu item that reads Memories. That's the new one.
The nerd stuff
To be able to serve images resposively (and responsibly), I installed Eleventy-img, but for that I had to upgrade to Eleventy 3xx, which made other things crack and shatter. Everything's fine now, after a few hours of fixing.
Eleventy-img runs post-build, and generates different sizes for each image, then replaces the <img> tags in the HTML with <figure> and serves the size that's better suited for the case. One of my worries was that the build process was too heavy for my free tier of Netlify, but right now it seems to be fine.
If in the future it results too heavy, I will need to either upgrade, or to build everything locally and only deploy the output directory, which doesn't seems too bad.
Anyway, thanks for reading this boring entry, please let me know if something breaks on your side, and see you around!
PS
I originally wanted to do this to own my stuff, and to reduce my Instagram usage. Well, the first thing is now better than ever, and I've been very low on my Instagram use thanks to being sailing the indie web and writing almost every day, and this new section makes that even stronger.
:)
Be the first to comment:
Comment: