Skip to content

Commit 879431d

Browse files
committed
Click on navigation item to go to overview page, but only for xl screens
1 parent 5907497 commit 879431d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

layouts/partials/header.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@
2626
{{ range site.Menus.main }}
2727
{{ if .HasChildren }}
2828
<li class="nav-item dropdown">
29-
<a class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown">
29+
<a class="nav-link dropdown-toggle d-none d-xl-block" href="{{ .URL | relURL }}" role="button">
30+
{{ .Name }}
31+
</a>
32+
<a class="nav-link dropdown-toggle d-block d-xl-none" href="{{ .URL | relURL }}" role="button" data-toggle="dropdown" >
3033
{{ .Name }}
3134
</a>
3235
<div class="dropdown-menu shadow-lg" style="padding: 1rem 0.25rem;">

tina/tina-lock.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)