Skip to content

Commit

Permalink
feat: always include duplicate top nav items
Browse files Browse the repository at this point in the history
  • Loading branch information
niccofyren committed Feb 10, 2025
1 parent 8b1329f commit 38ed2da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/navigation/NavItem.astro
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ const itemsWithParent: Array<
NavItem & {
touchOnly?: boolean;
}
> = path ? [{ path, title, touchOnly: true }, ...items] : items;
// Add copy of head item as top item in list, for people that don't like to click a hoverable item and mobile users where hover is not an option
> = path ? [{ path, title: "Oversikt", touchOnly: false }, ...items] : items;
---

<script>
Expand Down

0 comments on commit 38ed2da

Please sign in to comment.