Welcome to mirror list, hosted at ThFree Co, Russian Federation.

section-word-list.html « partials « layouts - gitlab.com/mertbakir/resume-a4.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 273c22b809a2e5786ce74c72cec8dd0912825d9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{{- $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 -}}