[docs-only] fix changelog template for the date field

References: #7691 ([docs-only] add toc to changelog)

Fixes the creation of the link when the date is a string and in upper case:

* link created: `changelog-for-unreleased-UNRELEASED`
* link required: `changelog-for-unreleased-unreleased`
This commit is contained in:
Martin
2023-11-09 16:55:43 +01:00
committed by GitHub
parent 7bb67d7e41
commit 19c20a0943

View File

@@ -1,7 +1,7 @@
# Table of Contents
{{ range . -}}
* [Changelog for {{ .Version }}](#changelog-for-{{ .Version | replace "." ""}}-{{ .Date -}})
* [Changelog for {{ .Version }}](#changelog-for-{{ .Version | replace "." ""}}-{{ .Date | lower -}})
{{ end -}}
{{ $allVersions := . }}
{{- range $index, $changes := . }}{{ with $changes -}}