diff options
author | User Mms <mms@voyager.local> | 2024-10-29 15:30:06 +0100 |
---|---|---|
committer | User Mms <mms@voyager.local> | 2024-10-29 15:30:06 +0100 |
commit | 7ed442dfa3b26483ff6cd1eeb871b40b6be97f52 (patch) | |
tree | 719c11b5cbd629b41e0681c343ba93eca0099269 /content/mirror/userfriendly/_content.gotmpl | |
parent | 05a2bce35431329610f3cbf092dd23cc526c8684 (diff) |
feat: UF archive
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 }} |