From 5dd4880d4c7dd8204196ebde91b0642b24833958 Mon Sep 17 00:00:00 2001 From: Ben Visness Date: Tue, 12 Mar 2024 23:20:35 -0500 Subject: [PATCH] heaaaghghghghg jam time yayaya --- src/hmnurl/urls.go | 7 + .../src/include/jam_2024_lj_bannerbig.html | 23 ++ .../src/include/jam_2024_lj_bannersmall.html | 19 ++ .../src/include/jam_2024_lj_description.html | 7 +- .../src/include/jam_2024_lj_feeditems.html | 4 +- .../src/include/jam_2024_lj_guidelines.html | 2 +- .../src/include/jam_2024_lj_projects.html | 31 ++- src/templates/src/jam_2024_lj_feed.html | 38 +--- .../src/jam_2024_lj_guidelines_index.html | 16 ++ src/templates/src/jam_2024_lj_index.html | 63 ++---- .../src/layouts/jam_2024_learning_base.html | 33 ++- src/templates/src/project_index.html | 2 + src/website/jam.go | 205 ++++++++++-------- src/website/routes.go | 1 + 14 files changed, 267 insertions(+), 184 deletions(-) create mode 100644 src/templates/src/include/jam_2024_lj_bannerbig.html create mode 100644 src/templates/src/include/jam_2024_lj_bannersmall.html create mode 100644 src/templates/src/jam_2024_lj_guidelines_index.html diff --git a/src/hmnurl/urls.go b/src/hmnurl/urls.go index ab77e622..eaf1187b 100644 --- a/src/hmnurl/urls.go +++ b/src/hmnurl/urls.go @@ -140,6 +140,13 @@ func BuildJamFeed2024_Learning() string { return Url("/jam/learning-2024/feed", nil) } +var RegexJamGuidelines2024_Learning = regexp.MustCompile("^/jam/learning-2024/guidelines$") + +func BuildJamGuidelines2024_Learning() string { + defer CatchPanic() + return Url("/jam/learning-2024/guidelines", nil) +} + func BuildJamIndexAny(slug string) string { defer CatchPanic() return Url(fmt.Sprintf("/jam/%s", slug), nil) diff --git a/src/templates/src/include/jam_2024_lj_bannerbig.html b/src/templates/src/include/jam_2024_lj_bannerbig.html new file mode 100644 index 00000000..d916970b --- /dev/null +++ b/src/templates/src/include/jam_2024_lj_bannerbig.html @@ -0,0 +1,23 @@ + diff --git a/src/templates/src/include/jam_2024_lj_bannersmall.html b/src/templates/src/include/jam_2024_lj_bannersmall.html new file mode 100644 index 00000000..48150f73 --- /dev/null +++ b/src/templates/src/include/jam_2024_lj_bannersmall.html @@ -0,0 +1,19 @@ + diff --git a/src/templates/src/include/jam_2024_lj_description.html b/src/templates/src/include/jam_2024_lj_description.html index 7d83d6ad..01d27688 100644 --- a/src/templates/src/include/jam_2024_lj_description.html +++ b/src/templates/src/include/jam_2024_lj_description.html @@ -2,10 +2,13 @@

What is a Learning Jam?

- The Learning Jam is a cool good time. + The Learning Jam is an opportunity for you to learn something new.

- TODO + Unlike traditional game jams, and unlike our previous programming jams, the goal of the Learning Jam is knowledge. It's an opportunity to throw yourself at a topic and learn everything you can about it—and then, to turn around and share that knowledge with others. +

+

+ The jam takes place over two weekends. On the first weekend, you'll learn as much as you can about your topic of choice. On the second, you'll share what you learned in whatever form you like—writeup, video, Minecraft mod, whatever.

diff --git a/src/templates/src/include/jam_2024_lj_feeditems.html b/src/templates/src/include/jam_2024_lj_feeditems.html index 4a0d9890..b9269a7b 100644 --- a/src/templates/src/include/jam_2024_lj_feeditems.html +++ b/src/templates/src/include/jam_2024_lj_feeditems.html @@ -2,8 +2,8 @@
{{ if .OwnerAvatarUrl }} - - + + {{ end }}
diff --git a/src/templates/src/include/jam_2024_lj_guidelines.html b/src/templates/src/include/jam_2024_lj_guidelines.html index be8782a4..d8eb875e 100644 --- a/src/templates/src/include/jam_2024_lj_guidelines.html +++ b/src/templates/src/include/jam_2024_lj_guidelines.html @@ -51,7 +51,7 @@

Mar 15-17: Learn!

- {{ if eq .DaysUntilStart 0 }} + {{ if and (eq .DaysUntilStart 0) (not .SubmittedProjectUrl) }} Create a Handmade Network project {{ else }} Create a Handmade Network project diff --git a/src/templates/src/include/jam_2024_lj_projects.html b/src/templates/src/include/jam_2024_lj_projects.html index 1a77a9dd..e0bc495c 100644 --- a/src/templates/src/include/jam_2024_lj_projects.html +++ b/src/templates/src/include/jam_2024_lj_projects.html @@ -1,18 +1,29 @@ {{ if .Projects }} -

+