summaryrefslogtreecommitdiffstats
path: root/themes/aoidh
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2026-01-02 11:48:42 -0330
committerSam Anthony <sam@samanthony.xyz>2026-01-02 11:48:42 -0330
commitf270250fbbf728611119e35d7703e0a96ca0fef0 (patch)
tree51fb102d74964b7dab718122c4cfe88efb796ef8 /themes/aoidh
parentdf32f24091f1cda49df6b417833301886c1a541f (diff)
downloadsamanthony.xyz-f270250fbbf728611119e35d7703e0a96ca0fef0.zip
copyright year range in footer; styling
Diffstat (limited to 'themes/aoidh')
-rw-r--r--themes/aoidh/assets/aoidh.css26
-rw-r--r--themes/aoidh/layouts/_partials/footer.html18
2 files changed, 38 insertions, 6 deletions
diff --git a/themes/aoidh/assets/aoidh.css b/themes/aoidh/assets/aoidh.css
index 07b2e89..fed5a92 100644
--- a/themes/aoidh/assets/aoidh.css
+++ b/themes/aoidh/assets/aoidh.css
@@ -76,6 +76,8 @@ p {
text-align: justify;
hyphens: auto;
text-justify: inter-word;
+ margin-top: 0;
+ margin-bottom: 1rem;
}
a {
@@ -97,15 +99,20 @@ a:active {
}
h1 {
- font-size: 130%;
+ font-size: 1.3em;
}
h2 {
- font-size: 120%;
+ font-size: 1.2em;
}
h3 {
- font-size: 110%;
+ font-size: 1.1em;
+}
+
+h1, h2, h3 {
+ margin-block-end: .4em; /* above */
+ margin-block-start: .8em; /* below */
}
table {
@@ -127,3 +134,16 @@ th, td {
padding: .15rem .6rem .15rem;
vertical-align: middle;
}
+
+footer {
+ font-size: 90%;
+}
+
+footer hr {
+ margin-top: 2rem;
+ margin-bottom: .4rem;
+}
+
+hr {
+ border-top: .1rem solid #000;
+}
diff --git a/themes/aoidh/layouts/_partials/footer.html b/themes/aoidh/layouts/_partials/footer.html
index 316a707..91d4a34 100644
--- a/themes/aoidh/layouts/_partials/footer.html
+++ b/themes/aoidh/layouts/_partials/footer.html
@@ -1,5 +1,17 @@
-<p>Copyright {{ now.Year }}
-{{- if .Site.Params.author.name -}}
- , {{ .Site.Params.author.name }}
+<hr>
+<p>
+{{- with index (sort .Site.RegularPages "Date" "asc") 0 -}}
+ {{ $epoch := .Date }}
+ {{- with index (sort .Site.Pages "Lastmod" "desc") 0 -}}
+ {{ $lastMod := .Lastmod }}
+ {{- if gt $lastMod.Year $epoch.Year -}}
+ Copyright {{ $epoch.Year -}}&ndash;{{- $lastMod.Year -}}
+ {{- else -}}
+ Copyright {{ $epoch.Year -}}
+ {{- end -}}
+ {{- end -}}
+{{- end -}}
+{{- with .Site.Params.author.name -}}
+ , {{ . }}
{{- end -}}
. All rights reserved.</p>