From 14e802da965e9cb7787a50eacbab9bfa1c3c4f00 Mon Sep 17 00:00:00 2001 From: LinuxSquare Date: Sat, 9 Mar 2024 13:48:08 +0100 Subject: [PATCH] Add dynamic jobs page --- layouts/shortcodes/jobs.html | 9 +++--- static/js/jobs.js | 54 +++++++++++++++++++++++++++++++++ static/js/team.js | 2 +- {data => static/json}/jobs.json | 0 4 files changed, 60 insertions(+), 5 deletions(-) create mode 100644 static/js/jobs.js rename {data => static/json}/jobs.json (100%) diff --git a/layouts/shortcodes/jobs.html b/layouts/shortcodes/jobs.html index 12e89bc..d671022 100644 --- a/layouts/shortcodes/jobs.html +++ b/layouts/shortcodes/jobs.html @@ -1,6 +1,6 @@ -
- +
+ + Range through all available job offerings {{ range .Site.Data.jobs }}

{{.title}}

@@ -31,8 +31,9 @@ type="button" class="text-white bg-blue-700 hover:bg-blue-800 focus:outline-none focus:ring-4 focus:ring-blue-300 font-medium rounded-full text-sm px-5 py-2.5 text-center me-2 mb-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 max-w-2xs" onclick="openApplyForm('{{.title}}')">Apply - {{ end }} + {{ end }} -->
+