Skip to content

Commit

Permalink
Update variable name.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanfox1985 committed Apr 27, 2019
1 parent d26ff39 commit 3a20cfe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layouts/partials/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
{{ $current := . }}
{{ range .Site.Menus.main }}
{{ $topLevel := replace .URL "/" "" }}
{{ $dropdown_klass := "dropdown" }}
{{ $li_dropdown_class := "dropdown" }}
{{ if not $current.IsHome }}
{{ if or (eq $current.RelPermalink .URL) (eq $current.Type $topLevel) }}
{{ $dropdown_klass = "dropdown active" }}
{{ $li_dropdown_class = "dropdown active" }}
{{ end }}
{{ end }}

<li class="{{ $dropdown_klass }}">
<li class="{{ $li_dropdown_class }}">
{{ if .HasChildren }}
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{{ .Name }} <span class="caret"></span></a>
<ul class="dropdown-menu">
Expand Down

0 comments on commit 3a20cfe

Please sign in to comment.