resume-a4/layouts/partials/section-word-list.html

38 lines
762 B
HTML
Raw Normal View History

{{- $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 -}}