diff options
author | lxndrblz <lxndrblz@users.noreply.github.com> | 2022-05-13 21:47:22 +0300 |
---|---|---|
committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2022-05-13 21:47:22 +0300 |
commit | 741ea6fa3717cd7c0ed2f029b4f75dbc0d11a27b (patch) | |
tree | b17845131ffa9ba3d0d18ffc296e931d6ec31b96 | |
parent | 1959fa6d400511da65044c29f1bc7c7030a31ca6 (diff) |
style: prettier format all files
-rw-r--r-- | layouts/partials/navbar.html | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html index d0de29a..5891e7d 100644 --- a/layouts/partials/navbar.html +++ b/layouts/partials/navbar.html @@ -16,9 +16,9 @@ <ul class="nav__list" id="navMenu"> {{ $url := .RelPermalink }} {{ range $menuId, $menuItem := .Site.Menus.main }} - {{ $active := eq $url $menuItem.URL }} + {{ $active := eq $url $menuItem.URL }} {{ if $menuItem.HasChildren }} - + <li class="nav__list-item"> <div class="optionswitch"> <input class="optionswitch__picker" type="checkbox" id="{{ $menuId }}" hidden /> @@ -28,10 +28,13 @@ {{ if eq $url .URL }} {{ $labelClass = "optionswitch__label nav__link--active" }} + {{ end }} + {{ end }} + <label class="{{ $labelClass }}" for="{{ $menuId }}" >{{ $menuItem.Name }} <i class="fa fa-angle-down" aria-hidden="true"></i ></label> |