From 1387b297acaf7c5880a040dbd7007cfc4f385f46 Mon Sep 17 00:00:00 2001 From: Drew Galbraith Date: Wed, 6 Dec 2023 23:02:29 -0800 Subject: [PATCH] More styling tweaks. --- assets/css/styles.css | 29 +++++++++++++++++++++++------ content/blog/_index.md | 2 +- layouts/_default/list.html | 4 +++- 3 files changed, 27 insertions(+), 8 deletions(-) diff --git a/assets/css/styles.css b/assets/css/styles.css index 390511b..23a1d16 100644 --- a/assets/css/styles.css +++ b/assets/css/styles.css @@ -11,6 +11,11 @@ body { header { display: flex; align-items: center; + margin-top: 20px; +} + +header h1 { + font-size: 1.6em; } header a { @@ -22,6 +27,12 @@ header * { display: inline; } +@media (max-width: 800px) { + nav { + display: none; + } +} + nav { margin-left: auto; } @@ -31,22 +42,31 @@ nav li { border-radius: 5px; } -nav li:hover { - background-color: #eee; + +nav a:hover { + text-decoration: underline; } main { margin-top: 50px; } -h1 { +h1, h2, h3 { margin-bottom: 5px; } +h2 { + border-bottom: 1px solid #000; +} + .date { font-style: italic; } +.small { + font-size: 0.8em; +} + img { max-width: 100%; max-height: 500px; @@ -63,7 +83,4 @@ figcaption { font-style: italic; } -h2 { - border-bottom: 1px solid #000; -} diff --git a/content/blog/_index.md b/content/blog/_index.md index 67137aa..3c1175d 100644 --- a/content/blog/_index.md +++ b/content/blog/_index.md @@ -2,5 +2,5 @@ menu: main: weight: 10 -title: Blog +title: Blog Posts --- diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 50fc92d..a0032b5 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -2,7 +2,9 @@

{{ .Title }}

{{ .Content }} {{ range .Pages }} -

{{ .LinkTitle }}

+

{{ .LinkTitle }}

+ {{ $dateHuman := .Date | time.Format ":date_long" }} +
{{ $dateHuman }}
{{ .Summary }} {{ end }} {{ end }}