geerlingguy / jeffgeerling-com

Drupal Codebase for JeffGeerling.com
https://www.jeffgeerling.com
GNU General Public License v2.0
41 stars 2 forks source link

Add warning on posts more than 10 years old #148

Closed geerlingguy closed 2 months ago

geerlingguy commented 2 years ago

I'd like to add a little info / warning bubble to the top of any post more than 10 years old (since my blog has a lot of old posts, some with outdated info that hasn't been updated and could be incorrect or misleading):

This post is more than 10 years old. I do not delete posts, because even old information is still useful, but please know that some material on this page may be outdated or incorrect. Thanks!

darkcactus1957 commented 2 years ago

I am guilty of archiving old posts. I for one, do not trust wayback machines. And I don;t trust magnetic tapes. Keep being you.

geerlingguy commented 2 years ago

@darkcactus1957 - Heh, I just like having it available. For technical posts, it can be a good point-in-time reference. For philosophical/life-related posts, it can be a good view into long-term changes in attitude or approach.

geerlingguy commented 2 months ago

I've added a block, but I need to pull it local, export it in config, and arrange for its appearance on nodes 10+ years old: https://www.jeffgeerling.com/admin/content/block/4

geerlingguy commented 2 months ago
Screenshot 2024-07-19 at 11 00 14 PM

About as good as I can muster using the built-in 'warning' CSS so I don't have to code up some display.