diff options
| -rw-r--r-- | content/_index.html | 2 | ||||
| -rw-r--r-- | content/posts/_index.md | 2 | ||||
| -rw-r--r-- | content/posts/post-1.md (renamed from content/posts/lorem-ipsum.md) | 2 | ||||
| -rw-r--r-- | layouts/baseof.html | 1 | ||||
| -rw-r--r-- | themes/aoidh/assets/aoidh.css | 26 | ||||
| -rw-r--r-- | themes/aoidh/layouts/_partials/footer.html | 18 |
6 files changed, 41 insertions, 10 deletions
diff --git a/content/_index.html b/content/_index.html index f3a4a2f..3ceba4f 100644 --- a/content/_index.html +++ b/content/_index.html @@ -1,7 +1,7 @@ --- title: "" date: 2025-12-23T17:12:55-03:30 -draft: true +draft: false --- <h1>About</h1> diff --git a/content/posts/_index.md b/content/posts/_index.md index e7066c0..eabddf5 100644 --- a/content/posts/_index.md +++ b/content/posts/_index.md @@ -1,6 +1,6 @@ +++ title = 'Posts' -date = 2023-01-01T08:30:00-07:00 +date = 2025-12-23T08:30:00-07:00 draft = false +++ diff --git a/content/posts/lorem-ipsum.md b/content/posts/post-1.md index 0425ef9..9ba4184 100644 --- a/content/posts/lorem-ipsum.md +++ b/content/posts/post-1.md @@ -1,6 +1,6 @@ +++ title = 'Post 1' -date = 2023-01-15T09:00:00-07:00 +date = 2025-12-23T09:00:00-07:00 draft = false tags = ['red'] +++ diff --git a/layouts/baseof.html b/layouts/baseof.html index 6cdd0e6..e5fd07d 100644 --- a/layouts/baseof.html +++ b/layouts/baseof.html @@ -11,7 +11,6 @@ <main> {{ block "main" . }}{{ end }} </main> - <hr> <footer> {{ partial "footer.html" . }} </footer> 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> |