From 8f03ab42f38f5a9086d4ae1c037a3cb6bf7540c1 Mon Sep 17 00:00:00 2001 From: Hector Dearman Date: Sat, 10 Aug 2019 19:35:18 +0100 Subject: [PATCH 1/3] Add events page --- _data/events.json | 18 ++++++++++++++++++ css/styles.scss | 2 +- events.html | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 _data/events.json create mode 100644 events.html diff --git a/_data/events.json b/_data/events.json new file mode 100644 index 0000000..efbbbcd --- /dev/null +++ b/_data/events.json @@ -0,0 +1,18 @@ +[ + { + "name": "Queer Code Pride Edition", + "location": "Makers Academy 50-52 Commercial St, E1 6LT ยท London", + "description": "This month we have two wonderful speakers to help us celebrate Pride! We'll be providing food before the talks, and there will be time to hang out and relax afterwards with your fellow queer coders.", + "datetime": "2019-08-04T18:00:00Z", + "url": "https://www.meetup.com/Queer-Code-London/events/262452231/", + "hostGroup": "London" + }, + { + "name": "Breakfast & Catch-up", + "datetime": "2019-07-25T08:00:00Z", + "location": "The Warehouse, 211 Old Street, 2nd Floor, London EC1V 9NR", + "description": "Socialise and chat over a free-of-charge buffet breakfast. You can arrive and leave any time between 8am and 9:30am, and a hot and cold buffet breakfast will be available throughout the entire time of the event. We will be seated at the far end of the room (look to your left after signing in at reception), near the space where the food is laid out.", + "hostGroup": "London", + "url": "https://www.meetup.com/Queer-Code-London/events/262381953/" + } +] diff --git a/css/styles.scss b/css/styles.scss index b9d832b..b8e5728 100644 --- a/css/styles.scss +++ b/css/styles.scss @@ -37,7 +37,7 @@ Bulma code with equivilant custom code. // elements -// @import "bulma/elements/box"; +@import "bulma/elements/box"; @import "bulma/elements/button"; @import "queercode/elements/button"; @import "bulma/elements/container"; diff --git a/events.html b/events.html new file mode 100644 index 0000000..19a7ed9 --- /dev/null +++ b/events.html @@ -0,0 +1,36 @@ +--- +title: Events +layout: default +--- + +
+
+

Events

+{% for event in site.data.events %} +
+

+ {{ event.name }}, + {%- if event.datetime %} + {{ event.datetime | date_to_long_string }} + {{ event.datetime | date: "%I:%M%P" }} + {%- else %} + date TBC + {%- endif %}, {{event.hostGroup}} + +
+ {% if event.description %} + {{ event.description }} + {% if event.url %} +

+ {% endif %} + {% else %} + {% if event.url %} + Find out more + {% endif %} + {% endif %} +

+
+{% endfor %} +

+
+
From 671c1cf74c74a0d7a9553a480b5bee1b5f3bab26 Mon Sep 17 00:00:00 2001 From: Hector Dearman Date: Sun, 11 Aug 2019 14:43:35 +0100 Subject: [PATCH 2/3] Add events page to header --- _includes/header.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/_includes/header.html b/_includes/header.html index 385a966..63d0181 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -49,6 +49,9 @@ Home + + Events + Mission From 14a13fb95ceb58eb037852dc569fd5072030a5a7 Mon Sep 17 00:00:00 2001 From: Hector Dearman Date: Sun, 11 Aug 2019 14:53:21 +0100 Subject: [PATCH 3/3] Highlight current page --- _includes/header.html | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/_includes/header.html b/_includes/header.html index 63d0181..21d7ea8 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -46,16 +46,24 @@