From f6ef2945291c74d16418e0ed5245006b002b5a91 Mon Sep 17 00:00:00 2001 From: Oliver Atkinson Date: Sat, 7 Jan 2023 14:09:01 -0700 Subject: [PATCH] readme merge --- README.md | 4 +-- layouts/_default/baseof.html | 11 +++++++- static/style.css | 51 ++++++++++++++++++++++++++++++++++-- 3 files changed, 61 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 4cf4b04..d526052 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Lugo - a fork of Luke's theme +# Oliver's Hugo Theme -A basic hugo theme based off of [Luke Smith's](https://lukesmith.xyz) hugo theme. Quite a lot has been changed so it is barely a fork at this point. +Fork of [lugo](https://github.com/LukeSmithxyz/lugo). Used for my personal website(s). ## Get started diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index f4ba58d..5f4d497 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -5,7 +5,16 @@ {{ if .Site.Menus.main }}{{ partial "nav.html" . }}{{ end -}}
-

{{ block "title" . }}{{ end }}

+
+

+ {{ if .IsHome }} {{ .Site.Title }} {{ end }} + {{ block "title" . }} + {{ end }}

+

+ {{ if not .IsHome }} {{ .Params.description }} {{ end }} +

+ +
{{ block "main" . }} {{ .Content }} diff --git a/static/style.css b/static/style.css index cbd5922..5831274 100644 --- a/static/style.css +++ b/static/style.css @@ -16,10 +16,28 @@ main { max-width: 75%; margin: auto; } -header h1 { +h1 { text-align: center; +} +h2 { + text-align: center; +} +h3 { + text-align: center; +} +h4 { + text-align: center; +} +header h1 { color: white; } +header h4 { + /* + The color half-way between the + background color and pure white + */ + color: rgb(163, 163, 163); +} a:link { color: white; } @@ -42,6 +60,9 @@ hr { border-top: 2px solid cadetblue; border-radius: 4px; } +br { + clear: both; +} pre { /* This has to be flagged important because somewhere in hugo a style @@ -69,14 +90,21 @@ code { border-radius: 4px; } img { + border-radius: 4px; +} +article img { max-width: 100%; + max-height: 100%; + outline: cadetblue solid 3px; +} +figure { + margin: 2%; } footer { padding-top: 2%; text-align: center; clear: both; } - footer a:any-link { color: white; } @@ -111,4 +139,23 @@ main { text-align: center; clear: both; color: rgb(64, 64, 64); +} + +/* For putting right / left boxes next to each other */ +.left { + width: 45%; + padding-right: 5%; + float: left; + clear: both; +} + +.right { + width: 45%; + padding-left: 5%; + float: right; +} + +.subtext { + color: rgb(69, 69, 69); + font-style: italic; } \ No newline at end of file