diff options
-rw-r--r-- | layouts/partials/footer.html | 12 | ||||
-rw-r--r-- | layouts/partials/header.html | 6 |
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 := . }} |