From 23d2b29bd9ac1a25995f5972a748c7e29509b4c6 Mon Sep 17 00:00:00 2001 From: Andrew Aiken Date: Mon, 9 Sep 2024 18:04:51 -0400 Subject: [PATCH 1/2] Add shortcode for countdown to an event --- content/en/about/index.md | 2 +- content/en/history/2025/_index.md | 12 ++++++++-- layouts/shortcodes/countdown.html | 37 +++++++++++++++++++++++++++++++ 3 files changed, 48 insertions(+), 3 deletions(-) create mode 100644 layouts/shortcodes/countdown.html diff --git a/content/en/about/index.md b/content/en/about/index.md index 6b3326f..360ccf6 100644 --- a/content/en/about/index.md +++ b/content/en/about/index.md @@ -20,4 +20,4 @@ The NECCDL relies on the support of league member institutions and sponsors in o For more information on becoming a League supporter, please contact us at sponsor@neccdl.org -Annual competitions are also made possible by a dedicated cadre of volunteers, if you or your organization are interested in volunteering for the league or in the cyber defense competition, please contact us at contact@neccdl.org or visit the volunteering page. +Annual competitions are also made possible by a dedicated cadre of volunteers, if you or your organization are interested in volunteering for the league or in the cyber defense competition, please contact us at contact@neccdl.org. diff --git a/content/en/history/2025/_index.md b/content/en/history/2025/_index.md index a6e5cca..50d8c94 100644 --- a/content/en/history/2025/_index.md +++ b/content/en/history/2025/_index.md @@ -9,7 +9,13 @@ includeInList: false Planning to plan for the NECCDC 2025 is underway! {{< /intro >}} - +{{< resources style="code" sort="desc" />}} + +--> diff --git a/layouts/shortcodes/countdown.html b/layouts/shortcodes/countdown.html new file mode 100644 index 0000000..85674e0 --- /dev/null +++ b/layouts/shortcodes/countdown.html @@ -0,0 +1,37 @@ + + +
+ + + + From 81662d987181241dfec80376673f27a1b73de1c2 Mon Sep 17 00:00:00 2001 From: Andrew Aiken Date: Tue, 10 Sep 2024 11:21:39 -0400 Subject: [PATCH 2/2] Update 2023 & add centered shortcode --- content/en/history/2023/index.md | 3 --- content/en/history/2024/index.md | 2 +- content/en/history/2025/_index.md | 18 +++++------------- layouts/shortcodes/centered.html | 5 +++++ 4 files changed, 11 insertions(+), 17 deletions(-) create mode 100644 layouts/shortcodes/centered.html diff --git a/content/en/history/2023/index.md b/content/en/history/2023/index.md index 80cf3a4..a60f0b0 100644 --- a/content/en/history/2023/index.md +++ b/content/en/history/2023/index.md @@ -12,8 +12,6 @@ Brought to you by {{< image src="/images/league-members/umass_lowell.png" alt="Umass Lowell Logo" width="25%" height="auto" >}} -## Was Syracuse in 2023? I see there resources submission... - --- {{}} @@ -104,7 +102,6 @@ Additional the source code for the regionals inject #13 can be [found here](http - [Pace University](https://github.com/bergcybersec/pace-ccdc-2023) - [Rochester Institute of Technology](https://github.com/orgs/CCDC-RIT/repositories) - [Roger Williams University](https://github.com/CIC-RWU/CIC-Scripts) -- [Syracuse University](https://github.com/suinfosecclub/ccdc-2023) - [University at Buffalo](https://github.com/ubnetdef/CCDC) - [University of Maine](https://github.com/UMCST/CCDC2023-UMaine-Playbook) - [University of Massachusetts Lowell](https://github.com/UML-Cyber-Security/ccdc2023) diff --git a/content/en/history/2024/index.md b/content/en/history/2024/index.md index be9fcd4..d3947b1 100644 --- a/content/en/history/2024/index.md +++ b/content/en/history/2024/index.md @@ -100,4 +100,4 @@ Source code for the creation of the 2024 competitions can be found in our GitHub - [Rochester Institute of Technology](https://github.com/orgs/CCDC-RIT/repositories) - [Roger Williams University](https://github.com/CIC-RWU/CIC-Scripts) - [University of Maine](https://github.com/UMCST/CCDC2024-UMaine-Playbook) -- [University of Massachusetts Lowell](https://github.com/UML-Cyber-Security/ccdc2024) \ No newline at end of file +- [University of Massachusetts Lowell](https://github.com/UML-Cyber-Security/ccdc2024) diff --git a/content/en/history/2025/_index.md b/content/en/history/2025/_index.md index 50d8c94..3a12704 100644 --- a/content/en/history/2025/_index.md +++ b/content/en/history/2025/_index.md @@ -9,20 +9,12 @@ includeInList: false Planning to plan for the NECCDC 2025 is underway! {{< /intro >}} ---- - -{{< countdown "2024-10-10T18:00:00" >}} +{{< spacer 10 >}} --- - +{{< countdown "2024-10-18T18:00:00" >}} diff --git a/layouts/shortcodes/centered.html b/layouts/shortcodes/centered.html new file mode 100644 index 0000000..e5d8468 --- /dev/null +++ b/layouts/shortcodes/centered.html @@ -0,0 +1,5 @@ +{{ $size := .Get 0 | default "h2" }} + +
+ {{ printf "<%s>%s" $size (.Inner | safeHTML) $size | safeHTML }} +