diff options
Diffstat (limited to 'themes')
| -rw-r--r-- | themes/aoidh/assets/aoidh.css | 26 | ||||
| -rw-r--r-- | themes/aoidh/layouts/_partials/footer.html | 18 |
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 -}}–{{- $lastMod.Year -}} + {{- else -}} + Copyright {{ $epoch.Year -}} + {{- end -}} + {{- end -}} +{{- end -}} +{{- with .Site.Params.author.name -}} + , {{ . }} {{- end -}} . All rights reserved.</p> |