More styling tweaks.

This commit is contained in:
Drew Galbraith 2023-12-06 23:02:29 -08:00
parent 0972e46468
commit 1387b297ac
3 changed files with 27 additions and 8 deletions

View File

@ -11,6 +11,11 @@ body {
header { header {
display: flex; display: flex;
align-items: center; align-items: center;
margin-top: 20px;
}
header h1 {
font-size: 1.6em;
} }
header a { header a {
@ -22,6 +27,12 @@ header * {
display: inline; display: inline;
} }
@media (max-width: 800px) {
nav {
display: none;
}
}
nav { nav {
margin-left: auto; margin-left: auto;
} }
@ -31,22 +42,31 @@ nav li {
border-radius: 5px; border-radius: 5px;
} }
nav li:hover {
background-color: #eee; nav a:hover {
text-decoration: underline;
} }
main { main {
margin-top: 50px; margin-top: 50px;
} }
h1 { h1, h2, h3 {
margin-bottom: 5px; margin-bottom: 5px;
} }
h2 {
border-bottom: 1px solid #000;
}
.date { .date {
font-style: italic; font-style: italic;
} }
.small {
font-size: 0.8em;
}
img { img {
max-width: 100%; max-width: 100%;
max-height: 500px; max-height: 500px;
@ -63,7 +83,4 @@ figcaption {
font-style: italic; font-style: italic;
} }
h2 {
border-bottom: 1px solid #000;
}

View File

@ -2,5 +2,5 @@
menu: menu:
main: main:
weight: 10 weight: 10
title: Blog title: Blog Posts
--- ---

View File

@ -2,7 +2,9 @@
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
{{ .Content }} {{ .Content }}
{{ range .Pages }} {{ range .Pages }}
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2> <h3><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ $dateHuman := .Date | time.Format ":date_long" }}
<div class="date small">{{ $dateHuman }}</div>
{{ .Summary }} {{ .Summary }}
{{ end }} {{ end }}
{{ end }} {{ end }}