From e39c958e8b38b96b762442eebbac3211dbaab744 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Tue, 3 Jan 2023 20:40:52 -0800 Subject: [PATCH] Display submission date for late submissions --- themes/tegakituesday.com/layouts/partials/submission.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/tegakituesday.com/layouts/partials/submission.html b/themes/tegakituesday.com/layouts/partials/submission.html index c58b31d..bf692c5 100644 --- a/themes/tegakituesday.com/layouts/partials/submission.html +++ b/themes/tegakituesday.com/layouts/partials/submission.html @@ -3,7 +3,7 @@ {{ if .image }} {{ $thumbnail := .image.Resize "500x" }} -
{{ .submission.username }}{{ if .submission.late }} (Late){{ end }}
+
{{ .submission.username }}{{ if .submission.late }} (Late {{ time.Format "2006/01/02" (int (mul -0.001 (int (index (findRE `-([1-9]){5,}\w+` .image.Name 1) 0)))) }}){{ end }}
{{ else }}
Image not found!
{{ end }}