diff options
Diffstat (limited to 'content/mirror/userfriendly/_content.gotmpl')
-rw-r--r-- | content/mirror/userfriendly/_content.gotmpl | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/content/mirror/userfriendly/_content.gotmpl b/content/mirror/userfriendly/_content.gotmpl new file mode 100644 index 0000000..9b6f2a0 --- /dev/null +++ b/content/mirror/userfriendly/_content.gotmpl @@ -0,0 +1,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 }} |