31/3/20203

# Comments

In the name of experimentation I have changed the Today template so that it gives a blank slate every day - no previous posts listed, just "On this day" and the link to Yesterday at the bottom.

I think it's an interesting idea that gives a true sense of starting each day afresh.

Status
#

Now I can look at the blog and relish a fresh start every day, embrace the blank page rather than fear it. I can wonder "what has today got in store?"

Status
#

In reply to: I really love this idea, Colin, as we… | Mr.Kapowski...

Here's a reminder of how it all works:

The Today page uses a custom page template and is set as the default home page of the blog. This runs a custom query to check if there any posts from today and list them in chronological order - if not it says so.

The Today page also does a bunch of other things such as "On this day" and on-the-fly building of the Daily RSS feed each time it loads. The full content of this is also loaded into the database ready for the Daily Email to be created overnight.

I have then customised the normal WordPress archive template for when the view is_day() to replicate the look and feel of the Today page, keeping things consistent between days.

In the footer I dynamically create the previous/next day links (inserting yesterday or today accordingly) based on the dates involved. These links then open the archive page in the day view.

There's not really that much too it, it's just a different approach to the standard reverse-chron default that younger with WordPress.

Status