aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
authorOlivier Roques <olivier@oroques.dev>2020-11-26 10:20:20 +0100
committerOlivier Roques <oroques@cisco.com>2020-11-26 13:37:26 +0100
commit7d557d96d0274c95b48da7972917c40bf751d0c7 (patch)
treefd12c996fc487f6612f9bc9bd8f4783840f1d0aa /layouts/partials
parente3ab3f858050572d4ea39491d3d292952aa262bf (diff)
Fix margins in header and footer
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/footer.html12
-rw-r--r--layouts/partials/header.html6
2 files changed, 8 insertions, 10 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 0e8925a..10486f3 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,10 +1,8 @@
-{{ with .Site.Params.footer }}
- <div id="footer">
+<div id="footer" class="mb-5">
+ {{ with .Site.Params.footer }}
<hr>
- <div class="container text-center mb-2">
+ <div class="container text-center">
<a href="{{ .url | absURL }}"><small>{{ .text }}</small></a>
</div>
- </div>
-{{ end }}
-
-<div class="mb-5"></div>
+ {{ end }}
+</div>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index aba1999..e9debdf 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,7 +1,7 @@
<div class="container mt-5">
- <nav class="navbar navbar-expand-sm flex-column flex-sm-row p-0">
- <a class="navbar-brand mr-sm-auto" href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
- <div class="navbar-nav flex-row">
+ <nav class="navbar navbar-expand-sm flex-column flex-sm-row text-nowrap p-0">
+ <a class="navbar-brand mx-0 mr-sm-auto" href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
+ <div class="navbar-nav flex-row flex-wrap justify-content-center">
{{ with .Site.Menus.main }}
{{ $navbar_len := len . }}
{{ range $i, $nav_item := . }}