From 7e411eb5c26b564b037d66b54975bf8f89e7b535 Mon Sep 17 00:00:00 2001 From: Anders Einar Hilden Date: Tue, 2 Aug 2022 21:33:17 +0200 Subject: [PATCH] Xing event iframes looked bad on their own, implemented collapsible shortcode using Bootstrap and timeanddate-event-link-shortcode. --- content/events.md | 23 ++++++++++++++------- layouts/shortcodes/collapse-event.html | 18 ++++++++++++++++ layouts/shortcodes/time-and-date-event.html | 13 ++++++++++++ 3 files changed, 47 insertions(+), 7 deletions(-) create mode 100644 layouts/shortcodes/collapse-event.html create mode 100644 layouts/shortcodes/time-and-date-event.html diff --git a/content/events.md b/content/events.md index 477f519..5daa83c 100755 --- a/content/events.md +++ b/content/events.md @@ -35,9 +35,11 @@ Conferences featuring MISP core members talking about MISP and/or threat intelli *Event link:* [2022 FIRST Cyber Threat Intelligence Symposium | #FIRSTCTI22](https://www.first.org/events/symposium/berlin2022/program) ### Public MISP trainings + - #### MISP Training - Threat Intelligence Introduction for Analysts and Security Professionals - *When:* 13th September 2022 14:00-17:00 UTC + + *When:* {{< time-and-date-event `13th September 2022 14:00-17:00 UTC` `MISP Training - Threat Intelligence Introduction for Analysts and Security Professionals` `20220913T14` `3` >}} *Where:* Remote (Zoom and online MISP traning instance) @@ -48,10 +50,13 @@ Conferences featuring MISP core members talking about MISP and/or threat intelli - Encoding a report - Making use of the various tools in MISP from an analyst perspective - *Event link:* [Register for this event](https://IMKNUTR.xing-events.com/IMKNUTR.html?viewType=iframe&distributionChannel=CHANNEL_IFRAME&language=en&resizeIFrame=true) + *Event link:* {{< collapse-event `MISP Training - Threat Intelligence Introduction for Analysts and Security Professionals` >}} + + {{< /collapse-event >}} - #### MISP Training - Administration and Deployment of MISP software - *When:* 14th September 2022 14:00-17:00 UTC + *When:* {{< time-and-date-event `14th September 2022 14:00-17:00 UTC` `MISP Training - Administration and Deployment of MISP software` `20220914T14` `3` >}} *Where:* Remote (Zoom and online MISP traning instance) @@ -61,12 +66,14 @@ Conferences featuring MISP core members talking about MISP and/or threat intelli - Deploying / running your MISP, i.e. - Configuration - Installation - - Community management + - Community management - *Event link:* [Register for this event](https://BVJBEEU.xing-events.com/BVJBEEU.html?viewType=iframe&distributionChannel=CHANNEL_IFRAME&language=en&resizeIFrame=true) + *Event link:* {{< collapse-event `MISP Training - Administration and Deployment of MISP software` >}} + + {{< /collapse-event >}} - #### MISP Training - Advanced Developer session from API to MISP internals - *When:* 15th September 2022 14:00-17:00 UTC + *When:* {{< time-and-date-event `15th September 2022 14:00-17:00 UTC` `MISP Training - Advanced Developer session from API to MISP internals` `20220915T14` `3` >}} *Where:* Remote (Zoom and online MISP traning instance) @@ -77,7 +84,9 @@ Conferences featuring MISP core members talking about MISP and/or threat intelli - Supporting dev libraries - Session on development of MISP internals - *Event link:* [Register for this event](https://IMGQRQQ.xing-events.com/IMGQRQQ.html?viewType=iframe&distributionChannel=CHANNEL_IFRAME&language=en&resizeIFrame=true) + *Event link:* {{< collapse-event `MISP Training - Advanced Developer session from API to MISP internals` >}} + + {{< /collapse-event >}} ### Past events diff --git a/layouts/shortcodes/collapse-event.html b/layouts/shortcodes/collapse-event.html new file mode 100644 index 0000000..909ea68 --- /dev/null +++ b/layouts/shortcodes/collapse-event.html @@ -0,0 +1,18 @@ +{{/* + Parameters: + Parameter 0: Will be used to render "Register for <0>" + Parameter 1: Will replace the link text "Register for this event" + Parameter 2: Will replace the whole "Register for " header. Parameter 0 is thus void. + Example usage: + + {{< collapse-event `MISP Training - Advanced Developer session from API to MISP internals` >}} + < insert xing iframe code here > + {{< /collapse-event >}} + +*/}}{{ $collapse_id := md5 .Inner }} +
+
+ {{ if (len (.Get 2)) }}{{ .Get 2 }}{{ else }}Register for {{ .Get 0 }}{{ end }} + {{ .Inner }} +
+
diff --git a/layouts/shortcodes/time-and-date-event.html b/layouts/shortcodes/time-and-date-event.html new file mode 100644 index 0000000..7d1fe25 --- /dev/null +++ b/layouts/shortcodes/time-and-date-event.html @@ -0,0 +1,13 @@ +{{/* + Parameters: + Parameter 0: Human readable time and date + Parameter 1: Title of event + Parameter 2: ISO time for event (UTC), i.e 20220802T21 + Parameter 3: Duration (optional) + + Example usage: + + {{< time-and-date-event `15th September 2022 14:00-17:00 UTC` `MISP Training - Advanced Developer session from API to MISP internals` `20220915T14` `3` >}} + +*/}} +{{ .Get 0 }}