From 02203c187fd877d169da77006deae05a2c70c68e Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Fri, 20 Sep 2024 14:39:13 -0700 Subject: [PATCH] Add footer with RSS link --- _layouts/default.html | 6 +++++- _layouts/post.html | 38 ++++++++++++++++++-------------------- assets/css/main.css | 24 ++++++++++++++++++++---- 3 files changed, 43 insertions(+), 25 deletions(-) diff --git a/_layouts/default.html b/_layouts/default.html index 83097ed..25166db 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -26,6 +26,10 @@ maybe other things later!

- {{ content }} +
{{ content }}
+ diff --git a/_layouts/post.html b/_layouts/post.html index 1b919f3..75e35f0 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -2,24 +2,22 @@ layout: default --- -
-
-
-

- {{ page.title }} -

-

- Posted on {{ page.date | date_to_string: "ordinal", "US" }}{% if - page.author %}, by {{ page.author }}{% endif %} -

-
+
+
+

+ {{ page.title }} +

+

+ Posted on {{ page.date | date_to_string: "ordinal", "US" }}{% if + page.author %}, by {{ page.author }}{% endif %} +

+
- {% if page.banner %} - - {% endif %} {{ content }} -
-
+ {% if page.banner %} + + {% endif %} {{ content }} + diff --git a/assets/css/main.css b/assets/css/main.css index 4eada6e..5f509ec 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -44,9 +44,7 @@ body > header { row-gap: 0.5em; column-gap: 0.5em; - border-bottom: 1px solid #060; padding-bottom: 0.75em; - margin-bottom: 0.75em; .logo { grid-area: logo; @@ -71,11 +69,29 @@ body > header { [role="doc-subtitle"] { grid-area: subtitle; - font-size: 0.75em; + font-size: 0.85em; margin: 0; } } +main { + border-block: 1px solid #060; + padding-block: 0.75em; +} + +body > footer { + font-size: 0.85em; + padding-block: 0.5em; + + nav { + display: inline; + } + + nav::before { + content: "• "; + } +} + article { > header { h2 { @@ -85,7 +101,7 @@ article { } p { - font-size: 0.75em; + font-size: 0.85em; margin-top: 0; } }