blob: 9b6f2a060b5a73dc595cf15d0f7dd9183f37e34b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{{ $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 }}
|