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>
This commit is contained in:
Aaron Powell
2026-02-26 12:50:19 +11:00
parent 48ca6b237f
commit 2d75b4429f
2 changed files with 118 additions and 74 deletions

View File

@@ -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',
];