From 47cea0c02f27514ac542004dbaafcfdba74217c0 Mon Sep 17 00:00:00 2001 From: Axetroy Date: Sun, 3 Oct 2021 17:44:14 +0800 Subject: [PATCH] update template --- 4_generator/template/default.tpl | 2 +- 4_generator/template/full.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4_generator/template/default.tpl b/4_generator/template/default.tpl index a8b30608..b6fe4f6f 100644 --- a/4_generator/template/default.tpl +++ b/4_generator/template/default.tpl @@ -2,7 +2,7 @@ {{- define "body" -}} {{range . -}} -- {{if .Field.Header.Scope }}**{{ unescape .Field.Header.Scope }}**: {{ end }}{{ unescape .Field.Header.Subject }}({{ hashURL .Hash}}) (thanks @{{ unescape .Author.Name }}){{if .Field.Footer }} {{if .Field.Footer.Closes }}, Closes: {{ .Field.Footer.Closes }} {{- end }} {{- end}} +- {{if .Field.Header.Scope }}**{{ unescape .Field.Header.Scope }}**: {{ end }}{{ unescape .Field.Header.Subject }}({{ hashURL .Hash}}) (@{{ unescape .Author.Name }}){{if .Field.Footer }} {{if .Field.Footer.Closes }}, Closes: {{ .Field.Footer.Closes }} {{- end }} {{- end}} {{ end }} {{- end -}} diff --git a/4_generator/template/full.tpl b/4_generator/template/full.tpl index fbcbb10e..edea83aa 100644 --- a/4_generator/template/full.tpl +++ b/4_generator/template/full.tpl @@ -2,7 +2,7 @@ {{- define "body" -}} {{range . -}} -- {{if .Field.Header.Scope }}**{{ unescape .Field.Header.Scope }}**: {{ end }}{{ unescape .Field.Header.Subject }}({{ hashURL .Hash}}) (thanks @{{ unescape .Author.Name }}){{if .Field.Footer }} {{if .Field.Footer.Closes }}, Closes: {{ .Field.Footer.Closes }} {{- end }} {{- end}} +- {{if .Field.Header.Scope }}**{{ unescape .Field.Header.Scope }}**: {{ end }}{{ unescape .Field.Header.Subject }}({{ hashURL .Hash}}) (@{{ unescape .Author.Name }}){{if .Field.Footer }} {{if .Field.Footer.Closes }}, Closes: {{ .Field.Footer.Closes }} {{- end }} {{- end}} {{ end }} {{- end -}}