Display A Message On Old Hugo Posts

Posted on Wednesday August 25, 2021 • Read time 2 minutes

Time moves on. Posts do not. Sometimes (read: most of the time) an old post doesn't get updated. The information in that post might be outdated and incorrect. But people don't always consider the age of the post, just jump to the content.

Taking inspiration from Twitter, I've added a message to be displayed on blog posts older than 365 days on here.

Built with Tailwind CSS using Hugo hosted on Netlify
© 2021 Matt Brunt