From 2326d84e3713e35c0fb12139dacc70a44905bef5 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Thu, 3 Nov 2022 15:15:24 -0400 Subject: [PATCH] Add header to homepage, improve h2 margins --- content/_index.md | 4 ++++ themes/red/assets/css/site.css | 4 ++++ themes/red/layouts/index.html | 6 +++++- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/content/_index.md b/content/_index.md index f035c7d..d4aded4 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,3 +1,7 @@ +--- +title: "Home" +--- + **new** My website has received a makeover, and features a few new sections for you to explore. Welcome to my personal corner of the Internet! diff --git a/themes/red/assets/css/site.css b/themes/red/assets/css/site.css index b54f4d2..4f2f685 100644 --- a/themes/red/assets/css/site.css +++ b/themes/red/assets/css/site.css @@ -151,3 +151,7 @@ table { margin-left: 1em; margin-right: 1em; } + +h2 { + margin-top: 0.2em; +} diff --git a/themes/red/layouts/index.html b/themes/red/layouts/index.html index bf703c8..283b8a3 100644 --- a/themes/red/layouts/index.html +++ b/themes/red/layouts/index.html @@ -1,3 +1,7 @@ {{ define "main" }} - {{ .Content }} +

{{ .Title }}

+ +
+ {{ .Content }} +
{{ end }}