From 2fb7f5a161b80cb45e8b555fe978c421dda0117f Mon Sep 17 00:00:00 2001 From: Worktop Date: Thu, 8 Feb 2024 10:26:15 -0500 Subject: [PATCH] remove footer from content div, style so its always on bottom --- layouts/404.html | 4 ++-- layouts/_default/list.html | 3 +++ layouts/_default/single.html | 4 +++- layouts/index.html | 4 ++-- layouts/partials/footer.html | 3 +-- layouts/partials/header.html | 2 +- static/css/style.css | 7 ++++--- 7 files changed, 16 insertions(+), 11 deletions(-) diff --git a/layouts/404.html b/layouts/404.html index 39475d0..eb07e88 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,10 +1,10 @@ {{ partial "header.html" . }} - +

Error 404:

Page Not Found

The url you entered is invalid or has been deleted.

Click here to return home.

- +
{{ partial "footer.html" . }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index b4d94d4..da4d143 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,4 +1,5 @@ {{ partial "header.html" . }} +

{{ .Title }}

@@ -15,4 +16,6 @@ {{ end }} +
+ {{ partial "footer.html" . }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index a903ad6..c6097ff 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,7 +1,9 @@ {{ partial "header.html" . }} +

{{ .Title }}

- {{ .Content }} +
+ {{ partial "footer.html" . }} diff --git a/layouts/index.html b/layouts/index.html index 15020bc..b702d50 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,5 +1,5 @@ {{ partial "header.html" . }} - +
{{ .Content }}

Recent Posts

@@ -8,5 +8,5 @@
  • {{ .Title}}
  • {{ end }} - +
    {{ partial "footer.html" . }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 7622395..1c147ab 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -15,7 +15,6 @@ footer.classList.add('fixed'); } }); - - + diff --git a/layouts/partials/header.html b/layouts/partials/header.html index f2db1dd..14c2833 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -14,4 +14,4 @@ {{ partial "nav.html" . }} -
    + diff --git a/static/css/style.css b/static/css/style.css index 4488648..eb491b2 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -3,7 +3,7 @@ /* Global options */ -html, body { +* { margin: 0; padding: 0; } @@ -27,14 +27,15 @@ a{ footer { width: 100%; text-align: center; - padding-bottom: 20px; + padding: 20px; } footer.fixed { margin: 0; position: fixed; bottom: 0; - left: 0; + left: 15%; + width: calc(85% - 40px); }