We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28f9d22 commit f850e24Copy full SHA for f850e24
layouts/partials/changelog-date.html
@@ -0,0 +1,10 @@
1
+{{ $changelogContent := readFile "content/nginx-one/changelog.md" }}
2
+{{ $maxNumLogs := 3 }}
3
+{{ $headings := first $maxNumLogs (findRE `(?m)^##\s(.+)$` $changelogContent) }}
4
+<ul>
5
+ {{ range $headings }}
6
+ {{ $title := replaceRE "^##\\s" "" . }}
7
+ <li><a href="{{ absURL "nginx-one/changelog/" }}#{{urlize $title}}">{{ $title }}</a></li>
8
+ {{ end }}
9
+ <li><a href="{{ absURL "nginx-one/changelog/" }}">Older...</a></li>
10
+</ul>
0 commit comments