From c5bf0be174a4d1f2797244d4837c64c948d3f9c7 Mon Sep 17 00:00:00 2001 From: nono Date: Wed, 17 Aug 2022 17:17:26 +0200 Subject: [PATCH 1/6] Fix margins disposition and size of single and home page --- assets/css/style.css | 10 ++++++---- layouts/_default/home.html | 9 ++++++--- layouts/_default/single.html | 17 ++++++++++------- layouts/partials/footer.html | 4 ++-- layouts/partials/openring-in.html | 2 +- layouts/partials/openring-out.html | 2 +- 6 files changed, 26 insertions(+), 18 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index 9ef04ac..c2d0a55 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -162,7 +162,7 @@ p { /* padding: 2em 0; */ margin-bottom: 3rem; margin-top: 1em; - width: 100%; + /* width: 100%; */ max-width: 50rem; /* border-radius: 1.2rem; */ z-index: 2; @@ -298,20 +298,22 @@ p { } .pagination-nav { margin: 2em 0; - width: 100%; max-width: 47rem; } .pagination-text { font-weight: bold; color: inherit; + padding: 1rem; + text-align: center; + align-content: center; } .pagination-newer { - float:left; + float:right; } .pagination-older { - float: right; + float: left; } .button { padding: 0.5em 0.6em; diff --git a/layouts/_default/home.html b/layouts/_default/home.html index f52cd52..b6270be 100644 --- a/layouts/_default/home.html +++ b/layouts/_default/home.html @@ -5,8 +5,9 @@ + {{ partial "nav-bar.html" . }} +
- {{ partial "nav-bar.html" . }} {{ if or (not (eq .Description "")) (not (eq .Title "")) -}} {{- end }} @@ -23,13 +24,15 @@ {{- range $paginator.Pages -}} {{ .Render "li" }} {{- end }} -
+ {{ if or ($paginator.HasPrev) ($paginator.HasNext) -}} -