Skip to content

Commit d7f3517

Browse files
authored
Fix changelog partial (#670)
fix changelog partial
1 parent 2f2be34 commit d7f3517

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

layouts/partials/changelog-date.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{{ $changelogContent := readFile "content/nginx-one/changelog.md" }}
22
{{ $maxNumLogs := 3 }}
33
{{ $headings := first $maxNumLogs (findRE `(?m)^##\s(.+)$` $changelogContent) }}
4-
54
<ul style="padding-top: 10px;">
6-
{{ range $headings }}
7-
{{$title := replaceRE "^##\\s" "" .}}
8-
<li><a href="{{ absURL "nginx-one/changelog/" }}#{{urlize $title}}">{{ $title }}</a></li>
9-
{{ end }}
10-
<li><a href="{{ absURL "nginx-one/changelog/" }}">Older...</a></li>
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>
1110
</ul>

0 commit comments

Comments
 (0)