From 57634b6231dd79c3d75c8303a6a5d64d37d3411d Mon Sep 17 00:00:00 2001 From: Aaron Powell Date: Wed, 11 Feb 2026 14:02:14 +1100 Subject: [PATCH] feat: move samples into learning hub as Cookbook - Rename samples page to /learning-hub/cookbook/ - Remove Samples from top navigation bar - Add Cookbook to learning hub sidebar under Hands-on section - Add Cookbook card to learning hub index page - Add redirect from /samples/ to /learning-hub/cookbook/ - Add breadcrumb navigation back to Learning Hub --- website/astro.config.mjs | 3 +++ website/src/layouts/ArticleLayout.astro | 14 +++++++++++++ website/src/layouts/BaseLayout.astro | 4 ---- .../cookbook/index.astro} | 13 +++++++----- website/src/pages/learning-hub/index.astro | 20 +++++++++++++++++++ 5 files changed, 45 insertions(+), 9 deletions(-) rename website/src/pages/{samples.astro => learning-hub/cookbook/index.astro} (92%) diff --git a/website/astro.config.mjs b/website/astro.config.mjs index 87c9e4e6..34ac6f16 100644 --- a/website/astro.config.mjs +++ b/website/astro.config.mjs @@ -7,6 +7,9 @@ export default defineConfig({ base: "/awesome-copilot/", output: "static", integrations: [sitemap()], + redirects: { + "/samples/": "/learning-hub/cookbook/", + }, build: { assets: "assets", }, diff --git a/website/src/layouts/ArticleLayout.astro b/website/src/layouts/ArticleLayout.astro index 9893402f..26493a6c 100644 --- a/website/src/layouts/ArticleLayout.astro +++ b/website/src/layouts/ArticleLayout.astro @@ -98,6 +98,20 @@ const currentSlug = Astro.url.pathname.replace(/\/$/, '').split('/').pop(); ))} +
diff --git a/website/src/layouts/BaseLayout.astro b/website/src/layouts/BaseLayout.astro index 658e6339..2901a2f8 100644 --- a/website/src/layouts/BaseLayout.astro +++ b/website/src/layouts/BaseLayout.astro @@ -95,10 +95,6 @@ try { href={`${base}tools/`} class:list={[{ active: activeNav === "tools" }]}>Tools - Samples Learning Hub +
@@ -243,6 +246,6 @@ const base = import.meta.env.BASE_URL; diff --git a/website/src/pages/learning-hub/index.astro b/website/src/pages/learning-hub/index.astro index 45458236..fbb20b1d 100644 --- a/website/src/pages/learning-hub/index.astro +++ b/website/src/pages/learning-hub/index.astro @@ -93,6 +93,26 @@ const reference = articles ))} +
+

Hands-on

+

Interactive samples and recipes to learn by doing.

+
+ + + + +
+