# Evergreen posts

DevFeed: [Evergreen posts](<https://devfeed.tech/articles/evergreen-posts-105901.md>)

Original publisher: [Read original article](<https://nedbatchelder.com/blog/202610/evergreen_posts>)

Author: Ned Batchelder

Published: 2026-10-28T12:41:28Z

Content type: article

Language: en

Sources: [Ned Batchelder's blog](<https://devfeed.tech/sources/ned-batchelder-s-blog.md>)

Topics: [Tool](<https://devfeed.tech/topics/tool.md>)

Tags: [blog-posts](<https://devfeed.tech/tags/blog-posts.md>), [customizable](<https://devfeed.tech/tags/customizable.md>), [days](<https://devfeed.tech/tags/days.md>), [evergreen](<https://devfeed.tech/tags/evergreen.md>), [feature](<https://devfeed.tech/tags/feature.md>), [features](<https://devfeed.tech/tags/features.md>), [fun](<https://devfeed.tech/tags/fun.md>), [good](<https://devfeed.tech/tags/good.md>), [implementing](<https://devfeed.tech/tags/implementing.md>), [it](<https://devfeed.tech/tags/it.md>), [like](<https://devfeed.tech/tags/like.md>), [links](<https://devfeed.tech/tags/links.md>), [message](<https://devfeed.tech/tags/message.md>), [post](<https://devfeed.tech/tags/post.md>), [posts](<https://devfeed.tech/tags/posts.md>), [site](<https://devfeed.tech/tags/site.md>), [software](<https://devfeed.tech/tags/software.md>), [technical](<https://devfeed.tech/tags/technical.md>), [things](<https://devfeed.tech/tags/things.md>), [warning](<https://devfeed.tech/tags/warning.md>)

## AI overview

The blog labels posts older than five years with an automatically updated age description and a caution that technical details may have changed. A Python function maps a post's fractional age in years to phrases such as "more than," "almost" or "nearly," spelling out numbers through ten. Posts marked evergreen replace the caution with a positive note; the author has now made that note customizable per post, with examples including "but it still bugs me" and "but I still have the books." The author presents the feature as a small personal pleasure made possible by owning and modifying the site's software.

## Source excerpt

Because I've been writing this blog for so long, I often share links to very old posts. Three years ago, I added a feature: if the post is more than five years old, there's a message next to the dateline indicating the age. The age descriptions adjust automatically when the post is rendered. I had fun implementing the human-style age descriptions: "nearly 12 years", "more than seven years", "exactly nine years", etc: NUMBER_NAMES = dict(enumerate( "zero one two three four five six seven eight nine ten".split() )) def years_age(age): years, frac = divmod(age.days / 365.25, 1) years = int(years) if frac < 1/365: modifier = "exactly " elif frac < 2/12: modifier = "" elif frac < 4/12: modifier = "more than " elif frac < 8/12: modifier = "over " elif frac < 9/12: modifier = "close to " years += 1 elif frac < 10/12: modifier = "almost " years += 1 elif frac < 11/12: modifier = "nearly " years += 1 elif frac < 364/365: modifier = "" years += 1 else: modifier = "exactly " years += 1 years = NUMBER_NAMES.get(years, years) return f"{modifier}{years} years" The complete message is then something like "This is more than 14 years old. Be careful" because many posts are technical, and details might have shifted. For example: Tricky locals(). But some posts never become stale: they are evergreen. So back then I also added a way to mark blog posts as evergreen. The message would change to "This is eight years old, but it's still good." I marked blog posts evergreen one by one when I shared them and saw the needless "Be careful" warning. Today I took it one step further: I made the "but it's still good" message customizable on each post. For example: Lap vs length: "but it still bugs me." Print this file, your printer will jam: "but it really happened." Paul Rand's geometry books: "but I still have the books." One of the things I like about running this site is that it is all mine. I can change the software however I like. I can build features like this that truly don't matter, but