From 50be8a59ca62c04d783b13719425ca58a797af1c Mon Sep 17 00:00:00 2001 From: "Evan G." Date: Mon, 20 May 2024 10:20:24 -0500 Subject: [PATCH] Update logic for Back Home, and also add metadata to homepage --- layouts/_default/list.html | 1 + layouts/index.html | 1 + layouts/partials/header.html | 2 +- static/css/homepage.css | 15 +++++++++++++-- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 35c217f..71ee208 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,4 +1,5 @@ {{ define "main" }} +{{ partial "head.html" }}

{{ .Title }}

{{ range .Pages.ByLastmod.Reverse }}

diff --git a/layouts/index.html b/layouts/index.html index 77022d7..e8f70ca 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -12,6 +12,7 @@ {{ range where .Site.RegularPages "Section" "in" .Site.MainSections }}

{{ .LinkTitle }}

+ {{ partial "metadata.html" . }}

{{ .Summary }}

{{ end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 922aad3..edd8e43 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -12,7 +12,7 @@ config change. --> {{- end }}

{{ $.Site.Title }}

-{{ else if .IsPage }} +{{ else }} Go Home

{{ $.Site.Params.subtitle }}

diff --git a/static/css/homepage.css b/static/css/homepage.css index e4691c2..6560fe8 100644 --- a/static/css/homepage.css +++ b/static/css/homepage.css @@ -25,6 +25,17 @@ text-decoration: none; } .summary { - padding-left: 3.5rem; - color: #f1f3f7 + padding-left: 1.5rem; + color: #f1f3f7; + margin-top: 0.1rem; +} +.metadata { + padding-left: 0.5rem; + border-top-style: none; + border-bottom-style: none; + padding-bottom: 0.3rem; +} +.metadata a { + text-decoration: underline; + color: pink; }