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 ab77e62..eaf1187 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 0000000..d916970 --- /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 0000000..48150f7 --- /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 7d83d6a..01d2768 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 4a0d989..b9269a7 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 be8782a..d8eb875 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 1a77a9d..e0bc495 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 }} -

+