diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-29 13:14:46 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-29 13:14:46 +0200 |
| commit | fb98e1e94d624605ba6ea75daf5e8ce0400fa629 (patch) | |
| tree | d0fbb57dfb7ad4ca2c60603e77e796e860e841fa /WORKFLOW.md | |
| parent | 9af1bb4f87931012184509a71b1cf60d96730ad9 (diff) | |
| parent | dc4eba2c6a709995a2f4718f9fb407f3057a13b8 (diff) | |
| download | danixxyz-fb98e1e94d624605ba6ea75daf5e8ce0400fa629.tar.gz danixxyz-fb98e1e94d624605ba6ea75daf5e8ce0400fa629.zip | |
Merge branch 'master' into productionrelease_29042026-1314
Diffstat (limited to 'WORKFLOW.md')
| -rw-r--r-- | WORKFLOW.md | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/WORKFLOW.md b/WORKFLOW.md index 6743d9d..e7cafd5 100644 --- a/WORKFLOW.md +++ b/WORKFLOW.md @@ -76,6 +76,41 @@ 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`. + +### Add an external link to the main menu + +Add a menu entry in `hugo.toml` with `params.external = true`: + +```toml +[[menus.main]] + name = "GitHub" + url = "https://github.com/youruser" + weight = 10 + [menus.main.params] + external = true +``` + +- `name` is used as-is (not looked up in i18n) +- `url` must be a full URL including scheme +- `weight` controls order relative to other menu items +- External links open in a new tab with `rel="noopener noreferrer"` and include a screen-reader-only "(opens in new tab)" label for WCAG 2.1 AA compliance + --- ## Working on the Theme |
