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/index.html | 43 +++++++++++++++++++++++++++++++------------ 1 file changed, 31 insertions(+), 12 deletions(-) (limited to 'layouts/index.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" . }} -- cgit v1.3.1