resume-a4/layouts/partials/section-word-list.html
Jaakko Kantojärvi 3e13c5ea2d Rewrite all layouts, data and configuration structures
* Add support for multiple pages
* Add support to reorder and move features to columns and pages
* Add support for new sections with generic widgets
2021-03-03 18:01:09 +02:00

37 lines
762 B
HTML

{{- $collection := index .Data (.Feature.collection | default "features" ) -}}
{{- $data := index $collection .Feature.feature }}
{{- if eq .Feature.style "list" -}}
<div class="item">
{{ range $data }}
{{- if reflect.IsMap . -}}
{{- range .list -}}
<li>{{.}}</li>
{{- end -}}
{{- else -}}
<li>{{.}}</li>
{{- end -}}
{{ end }}
</div>
{{- else if eq .Feature.style "compact" -}}
<div class="item">
<dl>
{{ range $data }}
<dt>{{ .groupName }}</dt>
<dd>
{{- range .list -}}
<span>{{.}}</span>
{{- end -}}
</dd>
{{ end }}
</dl>
</div>
{{- else -}}
{{ range $data }}
<div class="item">
<h2 class="item-title">{{ .groupName }}</h2>
{{ range .list }}
<li>{{.}}</li>
{{ end }}
</div>
{{ end }}
{{- end -}}