mirror of
https://github.com/Theodor-Springmann-Stiftung/lenz-web.git
synced 2025-10-29 09:15:33 +00:00
Index functions
This commit is contained in:
@@ -1 +1,15 @@
|
||||
Hello from body! What!
|
||||
{{ $model := . }}
|
||||
|
||||
{{- if .years -}}
|
||||
{{- range $y := .years -}}
|
||||
<div>
|
||||
{{- printf "%d " $y -}}
|
||||
{{- $letters := index $model.yearmap $y -}}
|
||||
{{- len $letters }}
|
||||
{{ range $l := $letters -}}
|
||||
<div>{{ $l.Letter }}</div>
|
||||
<div>{{ $l.Earliest.Text -}}</div>
|
||||
{{- end -}}
|
||||
</div>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
Reference in New Issue
Block a user