Skip to content

Commit

Permalink
♻️ (header.html, main-menu.html): refactor navigation structure to us…
Browse files Browse the repository at this point in the history
…e partial for main menu

Remove redundant main navigation HTML from `header.html` and consolidate it into `main-menu.html` partial. This change improves code maintainability by centralizing the navigation structure in one place, making it easier to update and manage. Additionally, update the home link in `main-menu.html` to point to the root URL ("/") for better navigation consistency.
  • Loading branch information
MrHinsh committed Sep 12, 2024
1 parent a63e974 commit 1838540
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 39 deletions.
38 changes: 0 additions & 38 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,43 +28,5 @@
</nav>
</div>
</div>

<!-- Main Navigation -->
<div class="container-fluid">
<div class="container">
<nav class="navbar navbar-expand-lg navbar-light">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#mainNav" aria-controls="mainNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="mainNav">
<div class="d-flex w-100 justify-content-between">
<div class="d-flex">
<a class="navbar-brand" href="#">
<img src="https://nkdagility.com/wp-content/uploads/2020/11/nkdagility-with-martin-hinshelwood-light.png" alt="Naked Agility Ltd" width="234" height="99" />
</a>
</div>
<div class="d-flex text-uppercase align-items-center">
<a class="navbar-brand nkda-main-menu-item p-3" href="/company/about-us" title="About Naked Agility">Who We Are?</a>
<a
class="navbar-brand nkda-main-menu-item p-3"
href="/capabilities/"
title="Explore our tailored services and capabilities in Consulting, Coaching, and Mentoring. Specializing in Agile, DevOps, Scrum, and Kanban, we’re here to help you tackle challenges and drive success. Enhance your team’s performance and efficiency with our expert solutions!">
What we Do?
</a>
<a
class="navbar-brand nkda-main-menu-item p-3"
href="/outcomes/"
title="Outcomes: enhanced Team Effectiveness, superior Product Quality, and accelerated Time to Market. Our solutions drive continuous improvement and adaptability, setting your business apart in competitive markets.">
What you Get?
</a>
<a class="navbar-brand nkda-main-menu-item p-3" href="/resources/" title="Featured Insights – Find out what we think about topics through Case Studies, Articles, Blog Posts, Videos, and Podcasts">What we Think?</a>
<a class="navbar-brand nkda-main-menu-item p-3" href="/training-courses/" title="Agile, Scrum, Kanban, & DevOps training courses">Training</a>
</div>
</div>
</div>
</nav>
</div>
</div>

{{ partial "main-menu.html" . }}
</header>
2 changes: 1 addition & 1 deletion layouts/partials/main-menu.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="container-fluid">
<div class="container">
<nav class="navbar navbar-expand-lg navbar-light">
<a class="navbar-brand" href="#">
<a class="navbar-brand" href="/">
<img src="https://nkdagility.com/wp-content/uploads/2020/11/nkdagility-with-martin-hinshelwood-light.png" alt="Naked Agility Ltd" width="234" height="99" />
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#mainNav" aria-controls="mainNav" aria-expanded="false" aria-label="Toggle navigation">
Expand Down

0 comments on commit 1838540

Please sign in to comment.