Hide sspdhemss submissions

main
Elnu 1 year ago
parent fd03245ab7
commit 1019da6964

@ -156,11 +156,13 @@
{{- if isset .Site.Data "challenges" -}} {{- if isset .Site.Data "challenges" -}}
{{- range index .Site.Data.challenges ($current) -}} {{- range index .Site.Data.challenges ($current) -}}
{{- $submission := . -}} {{- $submission := . -}}
{{ if or (ne $submission.username "sspdhemss") (gt $current 121) }}
{{- range.images -}} {{- range.images -}}
{{- $path := printf "%s" . | printf "%s%s" "/" | printf "%s%s" $current | printf "%s" -}} {{- $path := printf "%s" . | printf "%s%s" "/" | printf "%s%s" $current | printf "%s" -}}
{{- $image := resources.Get $path -}} {{- $image := resources.Get $path -}}
{{- partial "submission.html" (dict "submission" $submission "challenge" $current "image" $image) -}} {{- partial "submission.html" (dict "submission" $submission "challenge" $current "image" $image) -}}
{{- end -}} {{- end -}}
{{ end }}
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}
</div> </div>

Loading…
Cancel
Save