First commit
44
hugo/content/comics/_content.gotmpl
Normal file
@@ -0,0 +1,44 @@
|
||||
{{ $basePath := "content/comics" }}
|
||||
{{ range (os.ReadDir $basePath) }}
|
||||
{{ if .IsDir }}
|
||||
{{ $comicDir := .Name }}
|
||||
{{ $fullPath := printf "%s/%s" $basePath $comicDir }}
|
||||
{{ $indexContent := readFile (printf "%s/_index.md" $fullPath) }}
|
||||
{{ $comicData := transform.Unmarshal $indexContent }}
|
||||
{{ $images := slice }}
|
||||
{{ range (os.ReadDir $fullPath) }}
|
||||
{{ if findRE "\\.(jpg|jpeg|png|webp|gif)$" .Name }}
|
||||
{{ $images = $images | append .Name }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ $images = sort $images }}
|
||||
{{ $imageCount := len $images }}
|
||||
{{ range $index, $image := $images }}
|
||||
{{ if gt $index 0 }}
|
||||
{{ $pageNum := math.Add $index 1 }}
|
||||
{{ $nextPage := "" }}
|
||||
{{ $lastPage := "" }}
|
||||
{{ if lt $pageNum $imageCount }}
|
||||
{{ $nextPage = printf "../%d/" (math.Add $pageNum 1) }}
|
||||
{{ $lastPage = printf "../%d/" $imageCount }}
|
||||
{{ end }}
|
||||
{{ $prevPage := "../" }}
|
||||
{{ if gt $pageNum 2 }}
|
||||
{{ $prevPage = printf "../%d/" $index }}
|
||||
{{ end }}
|
||||
{{ $page := dict
|
||||
"path" (printf "%s/%d" $comicDir $pageNum)
|
||||
"title" (printf "%s, Seite %d" $comicData.title $pageNum)
|
||||
"description" $comicData.description
|
||||
"params" (dict
|
||||
"image" $image
|
||||
"next" $nextPage
|
||||
"prev" $prevPage
|
||||
"last" $lastPage
|
||||
)
|
||||
}}
|
||||
{{ $.AddPage $page }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
7
hugo/content/comics/_index.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: "Comics"
|
||||
layout: "comiclist"
|
||||
---
|
||||
# Comics
|
||||
|
||||
Hier gibt es meine verschiedenen Comics zu sehen. Einige Seiten haben Bildfehler, die auf einen früheren Festplattencrash zurückzuführen sind. Ich bitte diese kleinen Makel zu verzeihen. Für alle Comics wird Kenntnis der englischen Sprache vorausgesetzt.
|
||||
BIN
hugo/content/comics/alt/001.gif
Normal file
|
After Width: | Height: | Size: 41 KiB |
BIN
hugo/content/comics/alt/002.gif
Normal file
|
After Width: | Height: | Size: 63 KiB |
BIN
hugo/content/comics/alt/003.jpg
Normal file
|
After Width: | Height: | Size: 86 KiB |
BIN
hugo/content/comics/alt/004.jpg
Normal file
|
After Width: | Height: | Size: 69 KiB |
BIN
hugo/content/comics/alt/005.jpg
Normal file
|
After Width: | Height: | Size: 81 KiB |
BIN
hugo/content/comics/alt/006.gif
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
hugo/content/comics/alt/009.jpg
Normal file
|
After Width: | Height: | Size: 104 KiB |
BIN
hugo/content/comics/alt/010.jpg
Normal file
|
After Width: | Height: | Size: 95 KiB |
BIN
hugo/content/comics/alt/012.jpg
Normal file
|
After Width: | Height: | Size: 114 KiB |
BIN
hugo/content/comics/alt/015.gif
Normal file
|
After Width: | Height: | Size: 40 KiB |
BIN
hugo/content/comics/alt/016.jpg
Normal file
|
After Width: | Height: | Size: 111 KiB |
BIN
hugo/content/comics/alt/017.jpg
Normal file
|
After Width: | Height: | Size: 108 KiB |
BIN
hugo/content/comics/alt/018.jpg
Normal file
|
After Width: | Height: | Size: 82 KiB |
BIN
hugo/content/comics/alt/021.jpg
Normal file
|
After Width: | Height: | Size: 104 KiB |
BIN
hugo/content/comics/alt/022.jpg
Normal file
|
After Width: | Height: | Size: 102 KiB |
BIN
hugo/content/comics/alt/023.jpg
Normal file
|
After Width: | Height: | Size: 104 KiB |
BIN
hugo/content/comics/alt/024.jpg
Normal file
|
After Width: | Height: | Size: 91 KiB |
BIN
hugo/content/comics/alt/026.jpg
Normal file
|
After Width: | Height: | Size: 102 KiB |
BIN
hugo/content/comics/alt/027.jpg
Normal file
|
After Width: | Height: | Size: 100 KiB |
BIN
hugo/content/comics/alt/028.jpg
Normal file
|
After Width: | Height: | Size: 111 KiB |
BIN
hugo/content/comics/alt/029.jpg
Normal file
|
After Width: | Height: | Size: 93 KiB |
BIN
hugo/content/comics/alt/030.jpg
Normal file
|
After Width: | Height: | Size: 65 KiB |
4
hugo/content/comics/alt/_index.md
Normal file
@@ -0,0 +1,4 @@
|
||||
---
|
||||
title: "Alte Comics"
|
||||
description: "Meine ersten Veruche, Comics zu zeichnen. Zu schade, um sie einfach verschwinden zu lassen."
|
||||
---
|
||||
BIN
hugo/content/comics/jupiter/001.jpg
Normal file
|
After Width: | Height: | Size: 90 KiB |
BIN
hugo/content/comics/jupiter/002.jpg
Normal file
|
After Width: | Height: | Size: 132 KiB |
BIN
hugo/content/comics/jupiter/003.jpg
Normal file
|
After Width: | Height: | Size: 124 KiB |
BIN
hugo/content/comics/jupiter/004.jpg
Normal file
|
After Width: | Height: | Size: 141 KiB |
BIN
hugo/content/comics/jupiter/005.jpg
Normal file
|
After Width: | Height: | Size: 189 KiB |
BIN
hugo/content/comics/jupiter/006.jpg
Normal file
|
After Width: | Height: | Size: 169 KiB |
BIN
hugo/content/comics/jupiter/007.jpg
Normal file
|
After Width: | Height: | Size: 134 KiB |
BIN
hugo/content/comics/jupiter/008.jpg
Normal file
|
After Width: | Height: | Size: 176 KiB |
BIN
hugo/content/comics/jupiter/009.jpg
Normal file
|
After Width: | Height: | Size: 127 KiB |
BIN
hugo/content/comics/jupiter/010.jpg
Normal file
|
After Width: | Height: | Size: 158 KiB |
BIN
hugo/content/comics/jupiter/011.jpg
Normal file
|
After Width: | Height: | Size: 144 KiB |
4
hugo/content/comics/jupiter/_index.md
Normal file
@@ -0,0 +1,4 @@
|
||||
---
|
||||
title: "Shadow of Jupiter"
|
||||
description: "Eine kleine postapokalyptische Kurzgeschichte über Liebe, Vertrauen, Verlust und die Hoffung auf eine bessere Zukunft."
|
||||
---
|
||||