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