diff --git a/common-theme/layouts/partials/register-attendance.html b/common-theme/layouts/partials/register-attendance.html index 17ae9c5f2..7de5994c3 100644 --- a/common-theme/layouts/partials/register-attendance.html +++ b/common-theme/layouts/partials/register-attendance.html @@ -13,6 +13,9 @@ {{ $module := .module }} {{ $day := .day | urlize}} +{{ $orgData := index site.Data.courses $course }} + {{$locations := $orgData.locations}} + {{/* if any of these params are null, error */}} {{ if or (not $course) (not $module) (not $day) }} {{ errorf "register must go on a day plan and capture course, module, and day correctly" }} @@ -37,15 +40,20 @@

-
- -
-
- +
+
+ {{ with $locations }} +
+ + + {{ range . }}{{ end }} + +
+ {{ end }} diff --git a/org-cyf-itp/hugo.toml b/org-cyf-itp/hugo.toml index 7fff66829..f61904254 100644 --- a/org-cyf-itp/hugo.toml +++ b/org-cyf-itp/hugo.toml @@ -1,4 +1,4 @@ -title = "CYF ITP" +title = "ITP" baseURL = "https://programming.codeyourfuture.io/" [module] diff --git a/org-cyf-theme/data/courses/itd.toml b/org-cyf-theme/data/courses/itd.toml index 4f61f3925..70a0ca0b5 100644 --- a/org-cyf-theme/data/courses/itd.toml +++ b/org-cyf-theme/data/courses/itd.toml @@ -8,3 +8,4 @@ description="Meet the world of tech: write a CV with AI; evaluate data in spread days=30 commitment="part time" frequency=6 +locations=["Birmingham", "Capetown", "Glasgow", "London", "Manchester", "Online", "Sheffield"] diff --git a/org-cyf-theme/data/courses/itp.toml b/org-cyf-theme/data/courses/itp.toml index 8c339e619..582499e9b 100644 --- a/org-cyf-theme/data/courses/itp.toml +++ b/org-cyf-theme/data/courses/itp.toml @@ -7,4 +7,5 @@ description="Programming with JavaScript, Python, and SQL; collaborate to delive emoji="🐣" days=84 commitment="part time" -frequency=4 \ No newline at end of file +frequency=4 +locations=["Birmingham", "Capetown", "Glasgow", "London", "Manchester", "Online", "Sheffield"] \ No newline at end of file diff --git a/org-cyf-theme/data/courses/launch.toml b/org-cyf-theme/data/courses/launch.toml index 9ca6a3478..16733194a 100644 --- a/org-cyf-theme/data/courses/launch.toml +++ b/org-cyf-theme/data/courses/launch.toml @@ -7,4 +7,5 @@ description="In a cross functional Agile team, develop and deliver a real produc emoji="🚀" commitment="part time" days=35 -frequency=4 \ No newline at end of file +frequency=4 +locations=["Online"] \ No newline at end of file diff --git a/org-cyf-theme/data/courses/piscine.toml b/org-cyf-theme/data/courses/piscine.toml index b2424b7d6..f03161a8f 100644 --- a/org-cyf-theme/data/courses/piscine.toml +++ b/org-cyf-theme/data/courses/piscine.toml @@ -7,4 +7,5 @@ menu="selection" url="https://piscine.codeyourfuture.io/" days="22" commitment="part time" -frequency=4 \ No newline at end of file +frequency=4 +locations=["Online"] \ No newline at end of file diff --git a/org-cyf-theme/data/courses/sdc.toml b/org-cyf-theme/data/courses/sdc.toml index 38f39e4c0..17c11de75 100644 --- a/org-cyf-theme/data/courses/sdc.toml +++ b/org-cyf-theme/data/courses/sdc.toml @@ -7,4 +7,5 @@ weight=4 description="A secure grounding in software: binary, logic, systems, and problem solving" days="84" commitment="part time" -frequency=3 \ No newline at end of file +frequency=3 +locations=["Birmingham", "Capetown", "Glasgow", "London", "Manchester", "Online", "Sheffield"] \ No newline at end of file diff --git a/org-cyf-theme/data/courses/systems.toml b/org-cyf-theme/data/courses/systems.toml index 6fbfdbc43..175017ac8 100644 --- a/org-cyf-theme/data/courses/systems.toml +++ b/org-cyf-theme/data/courses/systems.toml @@ -5,4 +5,5 @@ description="An immersive, full time, systems engineering programme" url="https://systems.codeyourfuture.io/" menu="fellowships" days=260 -commitment="full time" \ No newline at end of file +commitment="full time" +locations=["Online"] \ No newline at end of file