Skip to content

Commit 199c9fe

Browse files
authored
Update header.html
1 parent ac292a6 commit 199c9fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/partials/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
{{ $currentPage := .}}
2424
{{ range .Site.Menus.main }}
2525
{{ $active := or (eq $currentPage.Title .Name) (or ($currentPage.HasMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .)) }}
26-
{{ if eq .Identifier "docs" }}
26+
{{ if and (eq hugo.Environment "production") (eq .Identifier "docs") }}
2727
<li class="main-navigation-links-item">
2828
<a href="{{ .URL | relLangURL }}" class="main-navigation-links-link has-dropdown {{ if $active }}active{{ end }}">
2929
<span>{{ .Name }}</span>

0 commit comments

Comments
 (0)