From 58e91fcee311b90301398d960ee5ac5b1d30c224 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Mon, 11 Jul 2022 09:15:28 -0400 Subject: [PATCH] more cleanup --- layouts/partials/footer.html | 4 +-- layouts/partials/header.html | 7 +++-- layouts/partials/nav.html | 4 +-- static/rss.svg | 33 +++++++++++++++++++++ static/style.css | 56 +++++++----------------------------- 5 files changed, 51 insertions(+), 53 deletions(-) create mode 100644 static/rss.svg diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index df4f9b2..804de8e 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -6,7 +6,7 @@ {{- range $k, $v := .Params.tags -}} {{- $url := printf "tags/%s" (. | urlize | lower) -}} {{ . | title }} - {{- if lt $k (sub $tagsLen 1) }}·{{ end -}} + {{- if lt $k (sub $tagsLen 1) }} · {{ end -}} {{- end -}} {{- end -}} @@ -14,7 +14,7 @@ diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 6137b55..c559354 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -9,11 +9,14 @@ {{ with .Site.Params.favicon }} {{ end -}} - + {{ if isset .Params "tags" }} + {{ end -}} -{{- partial "nav.html" . -}} +{{ if .Site.Menus.main -}} +{{ partial "nav.html" . }} +{{ end -}}
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 5ecb803..a7318fe 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -1,10 +1,8 @@ -{{- if .Site.Menus.main }} -{{- end }} diff --git a/static/rss.svg b/static/rss.svg new file mode 100644 index 0000000..35afbe2 --- /dev/null +++ b/static/rss.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/static/style.css b/static/style.css index 25e03b8..829a27a 100644 --- a/static/style.css +++ b/static/style.css @@ -4,57 +4,21 @@ body { color: #ddd ; } -.lw, p img, li img, h1 img, h2 img, h3 img, h4 img, dt img, td img { - max-height: 1em; - max-width: 1em; - vertical-align: middle ; -} - -img { max-width: 100% ; } - main { max-width: 800px ; margin: auto ; } +.lw, p img, li img, h1 img, h2 img, h3 img, h4 img, dt img, td img { + max-height: 1em ; + max-width: 1em ; + vertical-align: middle ; +} + +img { + max-width: 100% ; +} + header h1 { text-align: center ; } - -h1,h2,h3,h4,h5,h6 { - text-align: center ; -} - -nav,footer { - text-align: center ; - clear: both ; - border-radius: 20px ; - margin: auto ; -} -nav li,footer li { - display: inline-block ; - list-style: none ; - border-radius: 10px ; - padding: .5em ; - max-width: 7em ; -} -nav ul, footer ul, #taglist { - padding: 0; - margin: .5em; -} - - -@media (min-width: 1200px) { - nav { - float: left ; - width: 175px ; - position: fixed ; - text-align: left ; - font-size: large ; - } - nav li { - display: block ; - text-align: center ; - margin: .5em auto ; - } -}