Skip to content

Commit 6850101

Browse files
authored
Add stable link to latest release notes using Hugo aliases
NB! Remember to update header when releasing a new release.
1 parent ae2caa9 commit 6850101

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,15 @@ row a row b rov c
5959
2 2 5
6060
34 23 2
6161
```
62+
63+
## Adding Release Notes
64+
65+
Release notes are located in `content/releases/release-notes/`. To add a new release:
66+
67+
1. Create a new markdown file following the naming pattern `releasenotes_YYYY_MM.md`
68+
2. Add front matter with title, weight, and other metadata
69+
3. **Important**: To maintain the stable link to the latest release notes:
70+
- Add `aliases = ["/releases/release-notes/latest/"]` to the **latest** release note
71+
- Remove this alias from the previous release note
72+
73+
The alias creates a permanent redirect URL at `/releases/release-notes/latest/` that always points to the most recent release notes.

content/releases/_index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ See the following for common install procedures and options:
1717

1818
## Release Notes
1919

20+
[What's New - Latest Release](release-notes/latest/)
21+
2022
[ Sign up to be notified of new releases ]({{% ref "releasenotification.md" %}})
2123

2224
For the complete list of releases and updates, please visit [ResInsight on Github](https://github.com/OPM/ResInsight/releases/).

content/releases/release-notes/_index.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,12 @@ title = "Release Notes"
44
weight = 30
55
+++
66

7+
<!-- A stable link to the latest release notes is available at /releases/release-notes/latest/ -->
8+
<!-- This redirect is maintained via the 'aliases' field in the latest release note markdown file -->
9+
10+
711
![ResInsight User Interface](/images/getting-started/ResInsightUIMediumSize.png)
812

13+
## Latest Release
14+
15+
[**What's New - Latest Release**](latest/)

content/releases/release-notes/releasenotes_2025_12.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title = "What's New in 2025.12"
33
weight = 97
44
hidden = false
55
search_ignore = true
6+
aliases = ["/releases/release-notes/latest/"]
67
+++
78

89
## Radial Grid

0 commit comments

Comments
 (0)