Website-Redesign/layouts/shortcodes/peoplelist.html

17 lines
314 B
HTML

{{ $data := dict }}
{{ $path := "data/people.json" }}
{{ with resources.Get $path }}
{{ with . | transform.Unmarshal }}
{{ $data = . }}
{{ end }}
{{ else }}
{{ errorf "Unable to get global resource %q" $path }}
{{ end }}
{{ range $data }}
{{ .Name }}
<ul>
<li>{{ .Website }}<ul><li>
{{ end }}