From 2d75b4429f1e8c265558089859e5b7a04b3469a2 Mon Sep 17 00:00:00 2001 From: Aaron Powell Date: Thu, 26 Feb 2026 12:50:19 +1100 Subject: [PATCH] feat: add sticky sidebar navigation to Learning Hub index Add a left sidebar to the Learning Hub index page matching the pattern already used on individual article pages. The sidebar lists all articles grouped by section (Fundamentals, Reference, Hands-on) and stays sticky while scrolling, reducing vertical scroll for the now 10-article list. Also update ArticleLayout.astro fundamentalsOrder to include the 4 new articles added in the previous commit. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- website/src/layouts/ArticleLayout.astro | 8 +- website/src/pages/learning-hub/index.astro | 184 +++++++++++++-------- 2 files changed, 118 insertions(+), 74 deletions(-) diff --git a/website/src/layouts/ArticleLayout.astro b/website/src/layouts/ArticleLayout.astro index 26493a6c..7aff0ab8 100644 --- a/website/src/layouts/ArticleLayout.astro +++ b/website/src/layouts/ArticleLayout.astro @@ -16,11 +16,15 @@ const base = import.meta.env.BASE_URL; const articles = await getCollection('learning-hub'); const fundamentalsOrder = [ - 'what-are-agents-prompts-instructions', + 'what-are-agents-skills-instructions', 'understanding-copilot-context', 'copilot-configuration-basics', 'defining-custom-instructions', - 'creating-effective-prompts', + 'creating-effective-skills', + 'building-custom-agents', + 'understanding-mcp-servers', + 'automating-with-hooks', + 'using-copilot-coding-agent', 'before-after-customization-examples', ]; diff --git a/website/src/pages/learning-hub/index.astro b/website/src/pages/learning-hub/index.astro index 633e5212..87e169fe 100644 --- a/website/src/pages/learning-hub/index.astro +++ b/website/src/pages/learning-hub/index.astro @@ -42,81 +42,121 @@ const reference = articles
-
-

Fundamentals

-

Essential concepts to tailor GitHub Copilot beyond its default experience.

-
- {fundamentals.map((article, index) => ( - - - - - ))} -
-
+
+ -
-

Reference

-

Quick-lookup resources to keep handy while you work.

-
- {reference.map((article) => ( - - - - - ))} -
-
-
-

Hands-on

-

Interactive samples and recipes to learn by doing.

-
- - -
+