From f0160d842bfa89a6c403cc6fc5d931ef2b048331 Mon Sep 17 00:00:00 2001 From: Lewis Dale Date: Sat, 2 Mar 2024 10:14:30 +0000 Subject: [PATCH] add but dont link to last years events --- .../2024.html => _includes/eventcalendar.njk} | 10 +++------- src/css/globals.css | 1 - src/events/2023.11tydata.json | 16 ++++++++++++++++ src/events/2023.md | 8 ++++++++ src/events/2024.md | 8 ++++++++ 5 files changed, 35 insertions(+), 8 deletions(-) rename src/{events/2024.html => _includes/eventcalendar.njk} (58%) create mode 100644 src/events/2023.11tydata.json create mode 100644 src/events/2023.md create mode 100644 src/events/2024.md diff --git a/src/events/2024.html b/src/_includes/eventcalendar.njk similarity index 58% rename from src/events/2024.html rename to src/_includes/eventcalendar.njk index 9ba29cf..1592278 100644 --- a/src/events/2024.html +++ b/src/_includes/eventcalendar.njk @@ -1,16 +1,12 @@ --- -title: 2024 cycling events calendar -layout: base.njk +layout: "base.njk" ---

{{ title }}

-

This year I'm raising money for Cyclists Fighting Cancer, a brilliant charity that donate bikes to children and young people who are dealing with cancer.

- -

If you'd like to donate to the fundraiser, you can do so on the JustGiving page.

- + {{ content | safe }}

The events

    @@ -24,4 +20,4 @@ layout: base.njk
-
+ \ No newline at end of file diff --git a/src/css/globals.css b/src/css/globals.css index 563901f..e425995 100644 --- a/src/css/globals.css +++ b/src/css/globals.css @@ -128,7 +128,6 @@ a { } &[target="_blank"] { - padding-right: 1.5ch; display: inline-block; position: relative; } diff --git a/src/events/2023.11tydata.json b/src/events/2023.11tydata.json new file mode 100644 index 0000000..ca0fdab --- /dev/null +++ b/src/events/2023.11tydata.json @@ -0,0 +1,16 @@ +{ + "events": [ + { + "date": "2024-07-14", + "name": "Manchester - Blackpool Bike Ride", + "location": "Manchester, UK", + "distance": "215km" + }, + { + "date": "2024-09-02", + "name": "Manchester 100", + "location": "Manchester, UK", + "distance": "173km" + } + ] +} \ No newline at end of file diff --git a/src/events/2023.md b/src/events/2023.md new file mode 100644 index 0000000..2960079 --- /dev/null +++ b/src/events/2023.md @@ -0,0 +1,8 @@ +--- +title: 2023 cycling events calendar +layout: eventcalendar.njk +--- + +For 2023, I cycled two events raising money for [The Christie](https://www.christie.nhs.uk/), and was able to raise an amazing £936! + +Thanks so much to everyone who donated, I really appreciate it. diff --git a/src/events/2024.md b/src/events/2024.md new file mode 100644 index 0000000..4c2dea4 --- /dev/null +++ b/src/events/2024.md @@ -0,0 +1,8 @@ +--- +title: 2024 cycling events calendar +layout: eventcalendar.njk +--- + +This year I'm raising money for [Cyclists Fighting Cancer](https://www.cyclistsfc.org.uk/), a brilliant charity that donate bikes to children and young people who are dealing with cancer. + +If you'd like to donate to the fundraiser, you can do so on the [JustGiving page](https://www.justgiving.com/page/lewis-dale-bikes).