51 days ago · Tech · hide · Fediverse post

This site for me is a hobby, so I like tweaking things from time to time. It started when I noticed some cruft in the metal section of the pages, and I decided to get rid of it. In the process I worked with an if... then... else because of old habits. Just after I did that, I remembered that Tera now has a ternary function, which is actually perfect for what I wanted to do in this situation. It’s a lot shorter and cleaner-looking. That should help me a lot with the misplaced endif that I definitely do habitually put in the templates. In the future when the templates are not fresh in my mind, it should help with figuring out what’s going on a lot. I have actually been wanting to look into that since I first migrated to the new version of Zola. It was in beta then, so I figured it was best to hold off and let things stabilize. There was always the chance of more breaking changes. This sort of reworking things is a lot of fun to me and very interesting. It gets my brain working on…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town