From ab4bee80fbbd8b2bf57029969e988cd8c1b6a587 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Wed, 1 Mar 2023 18:57:35 -0800 Subject: [PATCH 1/3] Remove top margin of first headers --- assets/sass/style.sass | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assets/sass/style.sass b/assets/sass/style.sass index f329f74..a3fe0d2 100644 --- a/assets/sass/style.sass +++ b/assets/sass/style.sass @@ -21,6 +21,8 @@ body margin: 0 h1, h2, h3, h4, h5, h6 font-family: 'Roboto Slab', sans-serif + &:first-child + margin-top: 0 .content width: 80ch max-width: 100%; From 14f097c70cd850298eec3bdc760b72178bf4dcee Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Wed, 1 Mar 2023 19:17:33 -0800 Subject: [PATCH 2/3] Add horizontal rules between posts in feed --- layouts/index.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index f383ac7..862f95b 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -4,9 +4,16 @@ {{ if eq $pagination.PageNumber 1 }}

{{ .Title }}

{{ partial "content.html" .Content }} -
{{ end }} + {{ $scratch := newScratch }} + {{ $scratch.Add "i" 0 }} {{ range $pagination.Pages }} + {{ if or ($scratch.Get "i" | ne 0) (eq $pagination.PageNumber 1) }} +
+
+
+ {{ end }} + {{ $scratch.Set "i" ($scratch.Get "i" | add 1) }} -
{{ end }} {{ partial "pagination.html" $pagination }} {{ end }} From df3366a3db410bfb2147cda976ce97b184a062a3 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Wed, 1 Mar 2023 19:54:26 -0800 Subject: [PATCH 3/3] Add site title banner --- assets/sass/style.sass | 15 +++++++++++++++ layouts/_default/baseof.html | 13 ++++++++++++- layouts/index.html | 1 - 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/assets/sass/style.sass b/assets/sass/style.sass index a3fe0d2..6fb8ff3 100644 --- a/assets/sass/style.sass +++ b/assets/sass/style.sass @@ -19,6 +19,21 @@ html background-attachment: fixed body margin: 0 +header + & > * + margin: 0 +.site-header + display: flex + gap: 1em + align-items: center + color: inherit + text-decoration: none + h1 + margin-bottom: -0.375em + img + height: 5em + border-radius: 0.5em + border: 2px solid $primary h1, h2, h3, h4, h5, h6 font-family: 'Roboto Slab', sans-serif &:first-child diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 49cb744..ed73a7c 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -2,8 +2,19 @@ {{- partial "head.html" . -}} -
+ + {{ with .Site.Params.Avatar }} + + {{ end }} +
+

{{ .Site.Title }}

+ {{ with .Site.Params.Tagline }} +

{{ . }}

+ {{ end }} +
+
+
{{ if .Site.Params.Stork }}