|
|
|
@ -121,12 +121,14 @@
|
|
|
|
|
{{- define "secondary" -}}
|
|
|
|
|
{{- $current := replaceRE `[^0-9]` "" .File -}}
|
|
|
|
|
<div id="submissions">
|
|
|
|
|
{{- range index .Site.Data.challenges ($current) -}}
|
|
|
|
|
{{- $submission := . -}}
|
|
|
|
|
{{- range.images -}}
|
|
|
|
|
{{- $path := printf "%s" . | printf "%s%s" "/" | printf "%s%s" $current | printf "%s" -}}
|
|
|
|
|
{{- $image := resources.Get $path -}}
|
|
|
|
|
{{- partial "submission.html" (dict "submission" $submission "challenge" $current "image" $image) -}}
|
|
|
|
|
{{- if isset .Site.Data "challenges" -}}
|
|
|
|
|
{{- range index .Site.Data.challenges ($current) -}}
|
|
|
|
|
{{- $submission := . -}}
|
|
|
|
|
{{- range.images -}}
|
|
|
|
|
{{- $path := printf "%s" . | printf "%s%s" "/" | printf "%s%s" $current | printf "%s" -}}
|
|
|
|
|
{{- $image := resources.Get $path -}}
|
|
|
|
|
{{- partial "submission.html" (dict "submission" $submission "challenge" $current "image" $image) -}}
|
|
|
|
|
{{- end -}}
|
|
|
|
|
{{- end -}}
|
|
|
|
|
{{- end -}}
|
|
|
|
|
</div>
|
|
|
|
|