From 2404725855786a8121216cf35eefc7c169486df9 Mon Sep 17 00:00:00 2001 From: Dwayne Charrington Date: Mon, 16 Dec 2024 09:46:35 +1000 Subject: [PATCH] refact(header): restructure menu for better navigation Updated the header menu to include a dropdown for resources, consolidating examples and learn links under it. Added an external link for Aurelia 1 Docs with a new target attribute. Cleaned up the HTML structure for improved readability and maintainability. --- themes/aurelia-theme/data/header.yaml | 30 +++-- .../layouts/partials/header.html | 121 +++++++++++++----- 2 files changed, 106 insertions(+), 45 deletions(-) diff --git a/themes/aurelia-theme/data/header.yaml b/themes/aurelia-theme/data/header.yaml index 7d2388d..5a0772b 100644 --- a/themes/aurelia-theme/data/header.yaml +++ b/themes/aurelia-theme/data/header.yaml @@ -15,19 +15,23 @@ menu: link: "/blog" icon: "blog" active: "eq .Section 'blog'" - - name: "Examples" - link: "/examples" - icon: "examples" - active: "eq .RelPermalink '/examples/'" - - name: "Learn" - link: "/learn" - icon: "learn" - active: "eq .RelPermalink '/learn/'" + - name: "Resources" + icon: "resources" + dropdown: true + items: + - name: "Examples" + link: "/examples" + icon: "examples" + active: "eq .RelPermalink '/examples/'" + - name: "Learn" + link: "/learn" + icon: "learn" + active: "eq .RelPermalink '/learn/'" + - name: "Aurelia 1 Docs" + link: "https://aurelia-1.gitbook.io/v1-docs" + target: "_blank" + icon: "article" - name: "Contact" link: "/contact" icon: "contact" - active: "eq .RelPermalink '/contact/'" - - name: "Aurelia 1 Docs" - link: "https://aurelia-1.gitbook.io/v1-docs" - target: "_blank" - icon: "article" + active: "eq .RelPermalink '/contact/'" \ No newline at end of file diff --git a/themes/aurelia-theme/layouts/partials/header.html b/themes/aurelia-theme/layouts/partials/header.html index 6264c6a..bdfde0a 100644 --- a/themes/aurelia-theme/layouts/partials/header.html +++ b/themes/aurelia-theme/layouts/partials/header.html @@ -8,24 +8,56 @@ @@ -62,24 +94,49 @@