Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/lxndrblz/anatole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlxndrblz <lxndrblz@users.noreply.github.com>2022-05-13 21:47:22 +0300
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2022-05-13 21:47:22 +0300
commit741ea6fa3717cd7c0ed2f029b4f75dbc0d11a27b (patch)
treeb17845131ffa9ba3d0d18ffc296e931d6ec31b96 /layouts
parent1959fa6d400511da65044c29f1bc7c7030a31ca6 (diff)
style: prettier format all files
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/navbar.html7
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>