3e13c5ea2d
* Add support for multiple pages * Add support to reorder and move features to columns and pages * Add support for new sections with generic widgets
37 lines
762 B
HTML
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 -}}
|