From 1f74c443405b2827217275bbdc428bd9320bb99a Mon Sep 17 00:00:00 2001 From: schneefux Date: Sun, 24 Nov 2019 17:18:36 +0100 Subject: Rework index page layout to include projects --- layouts/404.html | 8 ------- layouts/_default/list.html | 28 ++++++++++++++----------- layouts/_default/single.html | 20 ++++++++++-------- layouts/index.html | 43 ++++++++++++++++++++++++++----------- layouts/partials/footer.html | 50 ++++++++++++++++++++++---------------------- layouts/partials/header.html | 37 +++++++++++++++++--------------- 6 files changed, 103 insertions(+), 83 deletions(-) delete mode 100644 layouts/404.html (limited to 'layouts') diff --git a/layouts/404.html b/layouts/404.html deleted file mode 100644 index b73be72..0000000 --- a/layouts/404.html +++ /dev/null @@ -1,8 +0,0 @@ -{{ partial "header.html" . }} - -
-

Oops!

-

This page does not exist.

-
- -{{ partial "footer.html" . }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 0cf0d1f..a33b3af 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,16 +1,20 @@ {{ partial "header.html" . }} -
-

{{ .Title }}

-{{ range .Data.Pages }} -
-

{{ .Title }}

- -
- {{ .Summary }} -
-
-{{ end }} -
+
+

{{ .Title }}

+ {{ range .Data.Pages }} +
+

+ {{ .Title }} +

+ +
+ {{ .Summary }} +
+
+ {{ end }} +
{{ partial "footer.html" . }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 431e193..e5ed960 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,13 +1,15 @@ {{ partial "header.html" . }} -
-
-

{{ .Title }}

- -
- {{ .Content }} -
-
-
+
+
+

{{ .Title }}

+ +
+ {{ .Content }} +
+
+
{{ partial "footer.html" . }} diff --git a/layouts/index.html b/layouts/index.html index 032e71f..703e5a5 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,16 +1,35 @@ {{ partial "header.html" . }} -
-

Tech

-{{ range (where .Data.Pages ".Section" "==" "tech") }} -
-

{{ .Title }}

- -
- {{ .Summary }} -
-
-{{ end }} -
+
+

Projects

+
+ {{ range where .Site.RegularPages "Section" "projects" }} +
+
+ +
+

+ {{ .Title }} +

+
+ {{ .Summary }} +
+
+ {{ if .Truncated }} + Read Article + {{ end }} + {{ if ne .Params.link nil }} + Visit Project Website + {{ end }} + + + +
+
+
+
+ {{ end }} +
+
{{ partial "footer.html" . }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index d53f13e..197af75 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,28 +1,28 @@ - - - + + + diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 4a6756e..67ab370 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -6,26 +6,29 @@ + {{ .Title }}{{ if not .IsHome }} - {{ .Site.Title }}{{ end }}
-
- -

{{ .Site.Title }}

-
-
-
- {{ range .Site.Menus.main }} - - {{ end }} -
-
-
-
+
+ +

{{ .Site.Title }}

+
+
+
+ {{ range .Site.Menus.main }} + {{ if ne .Name "Projects" }} + + {{ end }} + {{ end }} +
+
+
+
-- cgit v1.3.1