{{/* section label: Timeline about: Dates down a line, with what happened at each. fields: - { name: heading, type: text } - { name: intro, type: markdown } - name: items type: list label: Moments fields: - { name: when, type: text, required: true, help: "As you'd write it: 2019, Spring 2021, 9:30am." } - { name: title, type: text, required: true } - { name: text, type: markdown } - { name: image, type: image } - { name: image_alt, type: text, label: What the picture shows } - { name: from, type: data, label: Moments from, help: A file in data/ that holds the moments. Leave empty to use the ones above. } */}} {{ $items := .Data.items }}{{ with .Data.from }}{{ $items = data . }}{{ end }} {{ with .Data.heading }}{{ . }}{{ end }} {{ with .Data.intro }}{{ markdownify . }}{{ end }} {{ range $it := $items }} {{ .when }} {{ .title }} {{ with .text }}{{ markdownify . }}{{ end }} {{ with .image }}{{ end }} {{ end }}
{{ .when }}