Merge pull request #7691 from owncloud/add-changelog-toc

[docs-only] add toc to changelog
This commit is contained in:
Thomas Müller
2023-11-09 12:53:22 +01:00
committed by GitHub

View File

@@ -1,6 +1,11 @@
# Table of Contents
{{ range . -}}
* [Changelog for {{ .Version }}](#changelog-for-{{ .Version | replace "." ""}}-{{ .Date -}})
{{ end -}}
{{ $allVersions := . }}
{{- range $index, $changes := . }}{{ with $changes -}}
{{ if gt (len $allVersions) 1 -}}
{{ if gt (len $allVersions) 1 }}
# Changelog for [{{ .Version }}] ({{ .Date }})
The following sections list the changes for {{ .Version}}.