{{ define "main" }}

{{ .Title }}

Welcome to my art gallery! This is the most complete view of my work, which I have archived since 2016.

This current iteration of the gallery is a work-in-progress, so details and alt-text may be missing for older work.

If you wish to follow me when I post new art, you can follow me on Mastodon, Pixiv, Newgrounds or my Art RSS Feed!

{{ $paginator := .Paginate (where .Pages "Type" "art") 50 }} {{ if eq $paginator.PageNumber 1}}

Featured Artwork

Years

{{ range $.Param "years" }} {{ $year := . }} {{ $thumbp := printf "/year-thumbs/%s.webp" . }} {{ with resources.Get $thumbp }} {{ $year }} {{ end }} {{ end }}
{{ end }}
{{ range $paginator.Pages }} {{ $full := resources.Get (printf "art/%s.webp" .Params.slug) }} {{ if $full }} {{ $filename_without_ext := .Params.slug }} {{ $month := 1 }} {{ $year := 1 }} {{ if .Params.date }} {{ $split := split .Params.date "-" }} {{ $month = index $split 0 }} {{ $year = index $split 3 }} {{ end }} {{ $path := printf "/art/%d/%.2d/%s" (int $year) (int $month) $filename_without_ext}} {{ $title := .Params.title }} {{ $image := (resources.Get (printf "art/%s.webp" .Params.slug)).Resize "600x" }} {{ with $image }} {{ $title }} {{ else }}

Thumbnail not found!

{{ end }} {{ else }}
CANNOT FIND {{.Params.slug }} {{ end }} {{ end }}
{{ with $paginator.Prev }} Prev {{ end }} {{ with $paginator.Next }} Next {{ end }} {{ $site := resources.Get "js/site.js" }} {{ if hugo.IsProduction }} {{ $site = $site | minify | fingerprint | resources.PostProcess }} {{ end }} {{ end }}