From 32307d14c4a074426cfa600ee26297cc571e7f78 Mon Sep 17 00:00:00 2001
From: Martin Lowe <martin.lowe@eclipse-foundation.org>
Date: Wed, 26 Mar 2025 14:05:50 -0400
Subject: [PATCH] feat(elections): Use cascading related links for quick links
 in elections pages

---
 content/org/elections/_index.md               | 16 ++++++++++++--
 content/org/elections/election-process.md     |  2 --
 content/org/elections/key-dates.md            |  3 ---
 content/org/elections/nominees/_index.md      |  4 +---
 .../org/elections/quick-election-links.html   | 22 -------------------
 5 files changed, 15 insertions(+), 32 deletions(-)
 delete mode 100644 layouts/shortcodes/pages/org/elections/quick-election-links.html

diff --git a/content/org/elections/_index.md b/content/org/elections/_index.md
index ba652d7e..e9fe9733 100644
--- a/content/org/elections/_index.md
+++ b/content/org/elections/_index.md
@@ -2,6 +2,20 @@
 title: Eclipse Foundation Elections
 page_css_file: "/public/css/org/elections.css"
 layout: single
+cascade:
+    related:
+      title: Quick Links
+      links:
+        - text: Board Election Home
+          url: /org/elections
+        - text: 2025 Board Candidates
+          url: /org/elections/nominees
+        - text: 2025 Election Key Dates
+          url: /org/elections/key-dates
+        - text: Board Election Process
+          url: /org/elections/election-process
+        - text: Current Board of Directors
+          url: /org/foundation/directors.php
 ---
 
 The Eclipse Foundation holds elections for board members representing two very important groups within the Eclipse membership: the Committer Members and the Contributing Members. The terms of office for these elected board members is one year, commencing April 1.
@@ -23,5 +37,3 @@ Please see the announcement [here](https://newsroom.eclipse.org/news/announcemen
 We would like to thank everyone who participated in the 2025 Elections process.
 
 See the Quick Links here below for more details.
-
-{{< pages/org/elections/quick-election-links >}}
\ No newline at end of file
diff --git a/content/org/elections/election-process.md b/content/org/elections/election-process.md
index 54a9a116..7a877273 100644
--- a/content/org/elections/election-process.md
+++ b/content/org/elections/election-process.md
@@ -27,5 +27,3 @@ The process for the Eclipse Foundation’s annual elections is described below.
 -----
 
 *   \[1\] [Election Buddy](https://electionbuddy.com)
-
-{{< pages/org/elections/quick-election-links >}}
\ No newline at end of file
diff --git a/content/org/elections/key-dates.md b/content/org/elections/key-dates.md
index 37773106..f8102ea5 100644
--- a/content/org/elections/key-dates.md
+++ b/content/org/elections/key-dates.md
@@ -17,6 +17,3 @@ Each year, the Eclipse Foundation holds elections for board members representing
 *   28 February - Voting ends at 21h CET/ 3 pm EST
 *   03 March - New representatives announced via Community Bulletin
 *   08 April - Annual General Assembly (AGA) Meeting
-
-
-{{< pages/org/elections/quick-election-links >}}
\ No newline at end of file
diff --git a/content/org/elections/nominees/_index.md b/content/org/elections/nominees/_index.md
index ffdf6993..95ae30e2 100644
--- a/content/org/elections/nominees/_index.md
+++ b/content/org/elections/nominees/_index.md
@@ -9,6 +9,4 @@ Please see the announcement [here](https://newsroom.eclipse.org/news/announcemen
 
 We would like to thank everyone who participated in the 2025 Elections process.
 
-See the Quick Links here below for more details.
-
-{{< pages/org/elections/quick-election-links >}}
\ No newline at end of file
+See the Quick Links here below for more details.
\ No newline at end of file
diff --git a/layouts/shortcodes/pages/org/elections/quick-election-links.html b/layouts/shortcodes/pages/org/elections/quick-election-links.html
deleted file mode 100644
index 12a8de0d..00000000
--- a/layouts/shortcodes/pages/org/elections/quick-election-links.html
+++ /dev/null
@@ -1,22 +0,0 @@
-<!--
-  Copyright (c) 2025 Eclipse Foundation, Inc.
-
-  This program and the accompanying materials are made available under the
-  terms of the Eclipse Public License v. 2.0 which is available at
-  http://www.eclipse.org/legal/epl-2.0.
-
-  SPDX-License-Identifier: EPL-2.0
--->
-
-<div id="rightcolumn" class="margin-top-20">
-  <div class="sideitem">
-    <h2 class="underlined-heading">Quick Links</h2>
-    <ul>
-      <li><a href="/org/elections">Board Election Home</a></li>
-      <li><a href="/org/elections/nominees">2025 Board Candidates</a></li>
-      <li><a href="/org/elections/key-dates">2025 Election Key Dates</a></li>
-      <li><a href="/org/elections/election-process">Board Election Process</a></li>
-      <li><a href="/org/foundation/directors.php">Current Board of Directors</a></li>
-    </ul>
-  </div>
-</div>
\ No newline at end of file
-- 
GitLab