Now I will Notice Small Bugs In My Templates

Last week I switched this site over to the new version of Zola since I had gotten all my templates working as I wanted them to work. Of course I knew there would be things that I had overlooked while doing that.

As I notice these things, I have been fixing them. There have been a few typos in the text that I either corrected or wanted to change to make things a little clearer. I did some of that this morning while drinking my coffee.

I also noticed a glitch with the weather times on my weather pages. In the past, the date format that Ambient Weather gave for the times worked out of the box. That isn’t the case with the new version of Tera. The dumb part is I knew that and fixed it in some places but forgot to check my components. I fixed it easily enough this morning once I noticed that the times for today were in the future. Now it takes the timezone offsets again, so it is right.

Proofreading has never been a strong area for me. My partially educated theory is because of my poor vision, my brain has just learned to fill in a lot of what it expects to see to make things go a little faster. When I write stuff, it seems even worse than when others do. I guess because the brain knows what it wanted to be there. I simply do not even see a typo even after it has been pointed out many times.

It is not as much of a problem with math, where I guess I pay more attention, but with text it happens often.

Way back in the school days, it used to be really problematic when teachers forced stuff to be in handwriting. I struggle to read my own or anyone else’s, for that matter. At home for doing stuff, lighting was poor at best, not to mention all the distractions that I won’t get into in this post. That is a completely separate topic.

Either way it was a quick fix to get my dates formatted correctly for the program to understand it.

{%- set T = T | replace(from="-05:00", to="[-05:00]") | replace(from="-04:00", to="[-04:00]") -%}

This is the kind of thing I enjoy. I like finding and solving problems. It is also why I appreciate the fact that this website is just a hobby. I don’t have to sweat this kind of stuff. Now that I think of it, I think I remember seeing that there is a regex replace. I swear I remember using it for something in the past. I will have to look into that. It would make this more of a one-liner.

I did take a quick glance at the documentation and didn’t see anything for regex. Maybe I am thinking of Hugo?