]> danix's work - danix.xyz-2.git/commitdiff
docs: add obsolete article banner usage to workflow guide release_29042026-1232
authorDanilo M. <redacted>
Wed, 29 Apr 2026 10:32:30 +0000 (12:32 +0200)
committerDanilo M. <redacted>
Wed, 29 Apr 2026 10:32:30 +0000 (12:32 +0200)
WORKFLOW.md

index f8e6fee13663a8a261da4ec9ad59a1fe08130d75..c95141f39ca61d49b9ec4c1f7d7e0bce957ac312 100644 (file)
@@ -66,6 +66,23 @@ git commit -m "config: ..."
 git push origin master
 ```
 
+### Mark an article as obsolete
+
+Add `obsolete = true` to the article's front matter. Optionally link to a successor article with `successor = "/path/to/article"`:
+
+```toml
++++
+title = "My Old Article"
+# ... other fields ...
+obsolete = true
+successor = "/articles/my-new-article"
++++
+```
+
+The banner appears automatically below the article header. If `successor` is set, it resolves the article title and links to it. Both EN and IT i18n strings are customizable in `i18n/en.yaml` and `i18n/it.yaml`.
+
+Paths are Hugo permalinks — for English articles, use `/articles/slug`, not `/en/articles/slug`.
+
 ---
 
 ## Working on the Theme