Split highlights into title and items

This commit is contained in:
2018-05-08 23:43:11 +02:00
parent 96f48ac739
commit 5d82dbf58b
5 changed files with 49 additions and 14 deletions

View File

@@ -63,7 +63,14 @@
<div class="highlights"></div>
<ul class="list-group">
{{range .Highlights -}}
<li class="list-group-item">{{.}}</li>
<li class="list-group-item">
{{.Title}}
{{if .Items -}}
<ul>
{{range .Items}}<li>{{.}}</li>{{end}}
</ul>
{{- end}}
</li>
{{- end}}
</ul>
{{- end}}