Configurable day and article headers
2024-10-07 17:42:00 +07:00 by Mark Smith
This is really just a test post for a new feature on the website.
I explained it in more detail in a note yesterday. It boils down to the ability to set the header HTML element that is used to wrap the day dates, and also the blog post titles. Peviously these were both hardcoded to be <p>
elements. That worked pretty well for getting everything setup and working, minimal distractions during development. But with the initial build now close to being done, and with thr new everything page that interleaves all the post types, it was visually a but difficult to distinguish at a glance between them.
It will make the most difference for distinguishing notes, which have no title, and blog posts which do have titles. It will also make it easier to see newsletter and podcast posts. I’m going to set day headers to be <h3>
elements and blog titles to be <h4>
. The blog post should stand out a bit in the flow of posts on the page. That’s the hope anyway.
If this works as expected, I’m going to try and update the header fonts too. Initially they won’t be configurable, but perhaps I could look at that later down the line. #