From 7323b01e42d573c12818f48e4b00ed8ff7736565 Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Tue, 27 Dec 2022 19:59:35 -0700 Subject: added contact page, blog list, redid homepage --- layouts/404.html | 6 ++++++ layouts/_default/single.html | 4 +++- layouts/blog/list.html | 10 ++++++++++ layouts/index.html | 18 +++++++++++++++--- layouts/partials/foot.html | 5 +++-- layouts/partials/head.html | 4 ++-- layouts/projects/list.html | 2 +- layouts/projects/single.html | 2 +- 8 files changed, 41 insertions(+), 10 deletions(-) create mode 100644 layouts/404.html create mode 100644 layouts/blog/list.html (limited to 'layouts') diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..85aa08e --- /dev/null +++ b/layouts/404.html @@ -0,0 +1,6 @@ +{{ partial "head.html" . }} +

404: Page Not Found

+
+

Sorry dawg, I've got nothing for you here. How about you go back home and enjoy the scenery?

+

...or are you even human? Shoo! You nasty little web crawlers!

+{{ partial "foot.html" . }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 6e5937b..a905db1 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,6 +1,8 @@ {{ partial "head.html" . }} -

{{$.Title}}

+

{{$.Title}}


+
{{.Content}} +
{{ partial "foot.html" . }} diff --git a/layouts/blog/list.html b/layouts/blog/list.html new file mode 100644 index 0000000..345b5f9 --- /dev/null +++ b/layouts/blog/list.html @@ -0,0 +1,10 @@ +{{ partial "head.html" . }} +

My Blogs

+
+{{ range (where (where .Site.RegularPages "Section" "blog") "Params.nohtml" "!=" "true") }} +
+{{.Title}} +
{{.Date.Format "January 2, 2006"}}
+
+{{ end }} +{{ partial "foot.html" . }} diff --git a/layouts/index.html b/layouts/index.html index 4559344..478f8e9 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,10 +1,22 @@ {{ partial "head.html" . }} -{{ range (where (where .Site.RegularPages "Section" "blog") "Params.nohtml" "!=" "true") }} -{{- if .OutputFormats.Get "html" }} +

My Newest Project

+
+{{ range first 1 (where (where .Site.RegularPages "Section" "projects") "Params.nohtml" "!=" "true") }}
+ {{.Title}} -
{{.Date.Format "January 2, 2006"}}
+

{{ .Params.description }}

+Started {{ .Date.Format "January 2, 2006" }}
+
{{ end }} +

Recent Blog Posts

+
+{{ range first 4 (where (where .Site.RegularPages "Section" "blog") "Params.nohtml" "!=" "true") }} +
+{{.Title}} +
{{.Date.Format "January 2, 2006"}}
+
{{ end }} +View all posts -> {{ partial "foot.html" . }} diff --git a/layouts/partials/foot.html b/layouts/partials/foot.html index 683b345..ac533f5 100644 --- a/layouts/partials/foot.html +++ b/layouts/partials/foot.html @@ -1,12 +1,13 @@ - - + diff --git a/layouts/partials/head.html b/layouts/partials/head.html index b55534a..1b9189c 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -18,9 +18,9 @@