mirror of
https://github.com/octoleo/restic.git
synced 2024-12-01 01:03:55 +00:00
Add a table of contents (TOC) to the changelog template
This commit is contained in:
parent
c6299f8dbd
commit
db1d920c80
@ -1,18 +1,20 @@
|
|||||||
{{- range $changes := . }}{{ with $changes -}}
|
# Table of Contents
|
||||||
Changelog for restic {{ .Version }} ({{ .Date }})
|
|
||||||
=======================================
|
|
||||||
|
|
||||||
|
{{ range . -}}
|
||||||
|
* [Changelog for {{ .Version }}](#changelog-for-restic-{{ .Version | replace "." ""}}-{{ .Date | lower -}})
|
||||||
|
{{ end -}}
|
||||||
|
{{- range $changes := . }}{{ with $changes -}}
|
||||||
|
|
||||||
|
# Changelog for restic {{ .Version }} ({{ .Date }})
|
||||||
The following sections list the changes in restic {{ .Version }} relevant to
|
The following sections list the changes in restic {{ .Version }} relevant to
|
||||||
restic users. The changes are ordered by importance.
|
restic users. The changes are ordered by importance.
|
||||||
|
|
||||||
Summary
|
## Summary
|
||||||
-------
|
|
||||||
{{ range $entry := .Entries }}{{ with $entry }}
|
{{ range $entry := .Entries }}{{ with $entry }}
|
||||||
* {{ .TypeShort }} #{{ .PrimaryID }}: {{ .Title }}
|
* {{ .TypeShort }} #{{ .PrimaryID }}: {{ .Title }}
|
||||||
{{- end }}{{ end }}
|
{{- end }}{{ end }}
|
||||||
|
|
||||||
Details
|
## Details
|
||||||
-------
|
|
||||||
{{ range $entry := .Entries }}{{ with $entry }}
|
{{ range $entry := .Entries }}{{ with $entry }}
|
||||||
* {{ .Type }} #{{ .PrimaryID }}: {{ .Title }}
|
* {{ .Type }} #{{ .PrimaryID }}: {{ .Title }}
|
||||||
{{ range $par := .Paragraphs }}
|
{{ range $par := .Paragraphs }}
|
||||||
|
Loading…
Reference in New Issue
Block a user