{{/* range */}}
{{"https://gohugo.io/functions/range" | markdownify }}
{{ $fields := (dict "Title" "p_title" "Type" "p_type" "Status" "p_status") }}
{{ range $index, $value := $fields}}
{{ $index}}:{{$value}}
{{ end }}
{{ printf "%+v (T:%T #v:%#v)" $fields $fields $fields }}
{{ printf "#v:%#v" $fields }}
{{ $myArray := slice "Title" "p_title" "Type" "p_type" "Status" "p_status" }}
{{ if modBool (len $myArray) 2 }}
{{ range (seq 0 2 (sub (len $myArray) 1) ) }}
{{ . }}:{{ index $myArray . }}:{{ index $myArray (add . 1) }}
{{ end }}
{{ else }}
must be even
{{ end }}
https://gohugo.io/functions/range
Status:p_status
Title:p_title
Type:p_type
map[Title:p_title Type:p_type Status:p_status] (T:map[string]interface {} #v:map[string]interface {}{"Title":"p_title", "Type":"p_type", "Status":"p_status"})
#v:map[string]interface {}{"Title":"p_title", "Type":"p_type", "Status":"p_status"}
0:Title:p_title
2:Type:p_type
4:Status:p_status