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

github.com/zwbetz-gh/vanilla-bootstrap-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachary Betz <zwbetz@gmail.com>2018-12-30 23:25:17 +0300
committerZachary Betz <zwbetz@gmail.com>2018-12-30 23:25:17 +0300
commit8512e5b246ecc28790734ff970f56abafd0ee60c (patch)
treeba4afae8756dc37a92a1fa509323f006daf86d96
parent14b5ddeb9294d27fe79103d8edfae8aa746597f8 (diff)
Nav border fix v3
-rw-r--r--layouts/partials/nav.html25
-rw-r--r--layouts/partials/style.html2
2 files changed, 13 insertions, 14 deletions
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index 6f715b4..e2933a4 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -1,14 +1,13 @@
-<nav id="nav" class="nav justify-content-center">
-{{ $currentPage := . }}
-{{ range .Site.Menus.main }}
- {{ $active := "" }}
- {{ $menu := or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }}
- {{ if or $menu (eq $currentPage.Title .Name) }}
- {{ $active = "nav-link-active" }}
- {{ end }}
- <a class="nav-link font-125 {{ $active }}" href="{{ .URL }}">{{ print .Pre " " .Name | safeHTML }}</a>
-{{ end }}
-</nav>
-<div id="nav-border">
- <div class="container"></div>
+<div id="nav-border" class="container">
+ <nav id="nav" class="nav justify-content-center">
+ {{ $currentPage := . }}
+ {{ range .Site.Menus.main }}
+ {{ $active := "" }}
+ {{ $menu := or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }}
+ {{ if or $menu (eq $currentPage.Title .Name) }}
+ {{ $active = "nav-link-active" }}
+ {{ end }}
+ <a class="nav-link font-125 {{ $active }}" href="{{ .URL }}">{{ print .Pre " " .Name | safeHTML }}</a>
+ {{ end }}
+ </nav>
</div> \ No newline at end of file
diff --git a/layouts/partials/style.html b/layouts/partials/style.html
index 503b40d..5cb42cd 100644
--- a/layouts/partials/style.html
+++ b/layouts/partials/style.html
@@ -10,7 +10,7 @@
background-color: #212529;
color: #fff;
}
-#nav-border .container {
+#nav-border {
border-bottom: 1px solid #212529;
}
#main {