The principle that you're embarrassed of code you wrote more than 6 months ago is entirely applicable to blogging too.
Related Posts
Blogging about my programming language project: choosing the basic syntax!
https://www.garden-lang.org/blog/syntax.html
I'm increasingly doubtful that commit messages should be entirely immutable.
I sometimes find myself editing or commenting on merged pull requests, to help future readers.
Phabricator appended a URL to commit messages, which helped. In principle PR merging could do the same thing.
Over a sufficiently long time horizon, all code you write is legacy code.