{{ define "main" }}
Archive · Every issue

The issues

Roux publishes one hundred photographs at a time, once a season. Each issue is a complete thing.

{{- range $i, $id := $.Site.Params.issueIds }} {{- $iss := $.Site.GetPage (printf "/issues/%s" $id) }} {{- if not $iss }}{{- continue }}{{- end }} {{- $isCurrent := eq $iss.Params.status "current" }} {{- $isForth := eq $iss.Params.status "forthcoming" }} {{- $issueURL := printf "/issues/%s/" $id }} {{- $delay := mul $i 80 }} {{- if $isForth }}
{{- else }} {{- end }} {{/* Cover image */}}
{{- if $isForth }}
Forthcoming
{{- else }} {{- $firstPost := index $iss.Pages 0 }} {{- if $firstPost }} {{- $img := $firstPost.Resources.GetMatch "*.png" }} {{- if $img }} {{- $cover := $img.Resize "480x720 webp" }} Issue {{ $iss.Params.issueNumber }} cover {{- end }} {{- end }} {{- end }}
{{/* Metadata */}}
{{ $iss.Params.issueNumber }}

{{ $iss.Title }}

{{ $iss.Params.description }}

{{ $iss.Params.season }} {{- if $isCurrent }} Read the issue → {{- else if $isForth }} Subscribe → {{- end }}
{{- if $isForth }}
{{- else }}{{- end }} {{- end }}
{{ end }}