From f5aa1d63a7ada0b3a8040cde7aae622df950e051 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Wed, 3 Aug 2022 13:38:47 -0400 Subject: [PATCH] Indent layout files, link to about page --- content/_index.md | 3 +++ content/about.md | 2 +- themes/red/layouts/404.html | 3 +++ themes/red/layouts/_default/baseof.html | 2 -- themes/red/layouts/_default/list.html | 6 ++---- themes/red/layouts/_default/single.html | 6 ++---- themes/red/layouts/index.html | 3 +++ themes/red/layouts/partials/footer.html | 1 + themes/red/layouts/partials/header.html | 1 + 9 files changed, 16 insertions(+), 11 deletions(-) create mode 100644 content/_index.md diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..eaafc00 --- /dev/null +++ b/content/_index.md @@ -0,0 +1,3 @@ +See my [gallery](/art)! + +See my [about page](/about)! diff --git a/content/about.md b/content/about.md index 8d1c8b6..f195764 100644 --- a/content/about.md +++ b/content/about.md @@ -1 +1 @@ - +Hello this is my about page :-) diff --git a/themes/red/layouts/404.html b/themes/red/layouts/404.html index e69de29..de129a0 100644 --- a/themes/red/layouts/404.html +++ b/themes/red/layouts/404.html @@ -0,0 +1,3 @@ +{{ define "main" }} + Page not found! +{{ end }} diff --git a/themes/red/layouts/_default/baseof.html b/themes/red/layouts/_default/baseof.html index 5f8e2ec..c4963da 100644 --- a/themes/red/layouts/_default/baseof.html +++ b/themes/red/layouts/_default/baseof.html @@ -3,9 +3,7 @@ {{- partial "head.html" . -}} {{- partial "header.html" . -}} -
{{- block "main" . }}{{- end }} -
{{- partial "footer.html" . -}} diff --git a/themes/red/layouts/_default/list.html b/themes/red/layouts/_default/list.html index a5c2b53..9d176a0 100644 --- a/themes/red/layouts/_default/list.html +++ b/themes/red/layouts/_default/list.html @@ -1,7 +1,5 @@ {{ define "main" }} +

{{ .Title }}

-

{{ .Title }}

- -{{ .Content }} - + {{ .Content }} {{ end }} diff --git a/themes/red/layouts/_default/single.html b/themes/red/layouts/_default/single.html index a5c2b53..9d176a0 100644 --- a/themes/red/layouts/_default/single.html +++ b/themes/red/layouts/_default/single.html @@ -1,7 +1,5 @@ {{ define "main" }} +

{{ .Title }}

-

{{ .Title }}

- -{{ .Content }} - + {{ .Content }} {{ end }} diff --git a/themes/red/layouts/index.html b/themes/red/layouts/index.html index e69de29..bf703c8 100644 --- a/themes/red/layouts/index.html +++ b/themes/red/layouts/index.html @@ -0,0 +1,3 @@ +{{ define "main" }} + {{ .Content }} +{{ end }} diff --git a/themes/red/layouts/partials/footer.html b/themes/red/layouts/partials/footer.html index e69de29..b940e17 100644 --- a/themes/red/layouts/partials/footer.html +++ b/themes/red/layouts/partials/footer.html @@ -0,0 +1 @@ +Copyright (c) 2022 diff --git a/themes/red/layouts/partials/header.html b/themes/red/layouts/partials/header.html index e69de29..fbbee38 100644 --- a/themes/red/layouts/partials/header.html +++ b/themes/red/layouts/partials/header.html @@ -0,0 +1 @@ +

{{ .Site.Title }}