From 5a26286c0c59d05e6598406da012c93f57509d1e Mon Sep 17 00:00:00 2001 From: Oliver Atkinson Date: Sat, 7 Jan 2023 14:09:01 -0700 Subject: [PATCH] added main page --- 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 a39a9e8..dbc4ae0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Luke's Hugo Theme -A simple Hugo theme I plan on using for my personal website, [Based.Cooking](https://based.cooking) and [LandChad.net](https://landchad.net). +# Oliver's Hugo Theme +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 56c4df0..49c4d10 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -17,7 +17,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 c0020f1..0aa48a8 100644 --- a/static/style.css +++ b/static/style.css @@ -8,10 +8,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; } @@ -34,6 +52,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 @@ -61,14 +82,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; } @@ -100,4 +128,23 @@ footer a:any-link { 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