From fdb3840fff700ca806d9cd0d439e04021cadafc3 Mon Sep 17 00:00:00 2001 From: tess-barnes-mt Date: Mon, 10 Jun 2024 08:48:29 +0100 Subject: [PATCH] Make tech calendar and clean code pages data driven --- _data/tech-courses.yml | 68 +++++++++++++++++++++++++++ _includes/tech_course_listing.html | 14 ++++++ _includes/tech_course_summary.html | 17 +++++++ technology/calendar/cleancode.html | 74 ++++++++---------------------- technology/calendar/index.html | 50 ++++---------------- 5 files changed, 127 insertions(+), 96 deletions(-) create mode 100644 _data/tech-courses.yml create mode 100644 _includes/tech_course_listing.html create mode 100644 _includes/tech_course_summary.html diff --git a/_data/tech-courses.yml b/_data/tech-courses.yml new file mode 100644 index 0000000..3fd5eaa --- /dev/null +++ b/_data/tech-courses.yml @@ -0,0 +1,68 @@ +- type: clean-code + title: Clean Code + booking-page: cleancode.html + bookable: true + summary: |- + A bootcamp covering programming concepts, lots of discussion and practical exercises. + Suitable for all Engineering levels. + dates: + - title: Clean Code + location: Bristol + available: false + subtitle: Days 1 to 3 + date: Upcoming + description: |- + Days 1 to 3. Covers programming concepts, pairing and TDD. + Suitable for all Engineering levels. This course is *in-person* only. + button-url: '#' + + - title: Clean Code + location: London + available: false + subtitle: Days 1 to 3 + date: Upcoming + description: |- + Days 1 to 3. Covers programming concepts, pairing and TDD. + Suitable for all Engineering levels. This course is *in-person* only. + button-url: '#' + + - title: Clean Code + location: Manchester + available: false + subtitle: Days 1 to 3 + date: Upcoming + description: |- + Days 1 to 3. Covers programming concepts, pairing and TDD. + Suitable for all Engineering levels. This course is *in-person* only. + button-url: '#' + + - title: Clean Code - Remote + location: Remote + available: true + subtitle: Days 1 to 3 + date: Wednesday 17th July - Friday 19th July + description: |- + Days 1 to 3. Covers programming concepts, pairing and TDD. + Suitable for all Engineering levels. + + This course is being offered as a *remote* option and we will attempt to prioritise those who are unable to attend in-person sessions at an office. + button-url: 'https://forms.gle/inX5HHgWYkPjTsUS7' + +- type: consulting101 + title: What is Consulting and how should I do it at Made Tech? + booking-page: '' + bookable: false + summary: |- + A one day bootcamp covering the consulting market, how Made Tech fits into that market, how to approach account strategy & influence your client, as well as dealing with difficult scenarios. + Suitable for all billable roles. This course is *in-person* only. + dates: [] + +- type: tdd + title: Recapping TDD and Testing Along the Spectrum + booking-page: 'testing.html' + bookable: false + summary: |- + A 1.5 day bootcamp aimed to build confidence in TDD, use different tools across different areas of testing, and how to bug fix through testing. + Suitable for all levels. + *Please note: Part 1 will be online, Parts 2 and 3 will be in person. You need to be able to attend all three parts.* + dates: [] diff --git a/_includes/tech_course_listing.html b/_includes/tech_course_listing.html new file mode 100644 index 0000000..fea6dec --- /dev/null +++ b/_includes/tech_course_listing.html @@ -0,0 +1,14 @@ +
+
+
+

{{ include.course.location }}

+

{{ include.course.date }}

+
+ {{ include.course.description | markdownify }} +
+ {% if include.course.available %} + Register + {% endif %} +
+
+
\ No newline at end of file diff --git a/_includes/tech_course_summary.html b/_includes/tech_course_summary.html new file mode 100644 index 0000000..df38085 --- /dev/null +++ b/_includes/tech_course_summary.html @@ -0,0 +1,17 @@ +
+
+

{{ include.course.title }}

+

+ {{ include.course.summary }} +

+ {% for date in include.course.dates %} + {{ date.location }} - {{ date.subtitle }} - {{ date.date }}
+ {% endfor %} +

+

+ More information & Register +
+
\ No newline at end of file diff --git a/technology/calendar/cleancode.html b/technology/calendar/cleancode.html index e286f21..8a452ba 100644 --- a/technology/calendar/cleancode.html +++ b/technology/calendar/cleancode.html @@ -4,7 +4,7 @@ --- {% capture title %} -Training Opportunities +Training Opportunities - Clean Code {% endcapture %} {% capture text %} @@ -12,73 +12,39 @@ {% endcapture %} {% include digital_element_header.html title=title text=text %} + {% capture content %} +{% for course in site.data.tech-courses %} +{% if course.type == 'clean-code' %}
-

Clean Code

+

{{ course.title }}

- This workshop is a chance to learn and discuss what we consider to be "Clean Code" at Made Tech, learn some coding principles, as well as practice some TDD & Pairing. + This workshop is a chance to learn and discuss what we consider to be "Clean Code" at Made Tech, learn some coding + principles, as well as practice some TDD & Pairing.

- This is suitable for any level of Engineer at Made Tech, and will involve lots of discussion, pairing and coding. + This is suitable for any level of Engineer at Made Tech, and will involve lots of discussion, pairing and + coding.

- Please bear in mind that the workshop has been designed to be an in-person experience, although we run a remote version of this course we will prioritise those who are unable to attend in-person sessions at an office. + Please bear in mind that the workshop has been designed to be an in-person experience, although we run a + remote version of this course we will prioritise those who are unable to attend in-person sessions at an + office.

-
-
-
-

Bristol

-

Upcoming

-

- Days 1 to 3. Covers programming concepts, pairing and TDD. Suitable for all Engineering levels. This course is in-person only. -

- -
-
-
-
-
-
-

London

-

Upcoming

-

- Days 1 to 3. Covers programming concepts, pairing and TDD. Suitable for all Engineering levels. This course is in-person only. -

- -
-
-
-
-
-
-

Manchester

-

Upcoming

-

- Days 1 to 3. Covers programming concepts, pairing and TDD. Suitable for all Engineering levels. This course is in-person only. -

- -
-
-
-
-
-
-

Remote

-

Wednesday 17th July - Friday 19th July

-

- Days 1 to 3. Covers programming concepts, pairing and TDD. Suitable for all Engineering levels. This course is being offered as a remote option and we will attempt to prioritise those who are unable to attend in-person sessions at an office. -

- Register -
-
-
+{% for date in course.dates %} + +{% include tech_course_listing.html course=date %} + +{% endfor %} +{% endif %} +{% endfor %} {% endcapture %} -{% include digital_element_container.html content=content %} +{% include digital_element_container.html content=content %} \ No newline at end of file diff --git a/technology/calendar/index.html b/technology/calendar/index.html index f22235c..c0ccaae 100644 --- a/technology/calendar/index.html +++ b/technology/calendar/index.html @@ -12,56 +12,22 @@ {% endcapture %} {% include digital_element_header.html title=title text=text %} + {% capture content %}
-
-
-

Clean Code

-

- A bootcamp covering programming concepts, lots of discussion and practical exercises. Suitable for all Engineering levels. -

- Bristol - Days 1 to 3 - Tuesday 30th April - 2nd May
- Remote - Day 1 - Monday 13th May -

-

- More information & Register -
-
- - + + {% for course in site.data.tech-courses %} + {% if course.bookable %} + {% include tech_course_summary.html course=course %} + {% endif %} + {% endfor %} +
- {% endcapture %} {% include digital_element_container.html content=content %}