{{ $data := resources.Get "mirror/userfriendly/data.yaml" | transform.Unmarshal }} {{range $data }} { "mediaType" "text/markdown" "value" "" }} {{ $dates := dict "date" (time.AsTime .date) }} {{ $params := dict "assetPath" (printf "mirror/userfriendly/%s.gif" .name) "categories" (slice "mirror") "type" "comic" "mirrorName" "uf" "nolist" true }} {{ $page := dict "title" (printf "Comic for %s" .date) "kind" "page" "path" .name "dates" $dates "params" $params "layout" "comic" "weight" .name }} {{ $.AddPage $page }} {{ end }}