I am trying to figure out how to make On This Day with my current theme. As far as I understand the Micromeories code just discovers and crawls your /archive page and populates the content, so as long as you have an /archive page, in theory, and as I barely understand it, should work. It was working on the first iteration of the theme (Outpost), then it stopped. On the second iteration of the theme, all that was added was support for clickable categories links.
So, again, I am trying to figure out or understand what I may need to change (or add) in the theme’s template to make it work again.
Can’t promise you that 100%, I only executed the Python code in my brain, not on an actual computer. But it looks like it should be alright if you add dt-published to the post template.
Okay, And I don’t change anything from your script above? I copied and pasted it exactly as is, and “it works” is just weird. It labels every post as of October 20, 2023, but also, I am not sure if the posts showing are actually from 10/23 of previous years.
Hello, something happened. Did something change on Micro.blog recently? I managed to create a custom theme to “fix” on this day with this theme and it was working but now I get invalid dates with the posts.
This almost always is an issue where you formatter is defined wrong for Hugo. Without seeing code, it’s hard to help debug. The format always has to be like what I put above – it’s “numeric” order kind of… Month Day Hour Minute Second Year Timezone… always has to be 01 for month, 02 for day, 03 for hour, 04 for minute, 05 for second, 06 for year, and 07 for timezone, whatever your desired date format. Day is always Monday.
So for today in your format, it has to be {{ .Date.Format "Monday January 2, 2006" }}
The error was I my code where I had a typo and wrote 2026 by mistake from my iPad on the prior post.
Sooo I thought it worked for me, but it doesn’t…
Instead of showing the post from last year at this date, which it did before, this page on my blog now shows today’s post (same date, different year).
Seems like I need to add the <date> somewhere, but where exactly in the page’s code?