From 0b61a27e2b72d88c6ccd67bcb47e90c2a42570e7 Mon Sep 17 00:00:00 2001 From: Warwick Date: Wed, 26 Jun 2024 19:13:48 +0100 Subject: [PATCH] Temporary hack until I have more blog posts to make main page more organised --- themes/warwick_portfolio/assets/css/main.css | 7 ++++ themes/warwick_portfolio/layouts/index.html | 36 +++++++++++--------- 2 files changed, 26 insertions(+), 17 deletions(-) diff --git a/themes/warwick_portfolio/assets/css/main.css b/themes/warwick_portfolio/assets/css/main.css index 1bf8a81..f5ebe07 100644 --- a/themes/warwick_portfolio/assets/css/main.css +++ b/themes/warwick_portfolio/assets/css/main.css @@ -86,6 +86,13 @@ footer { margin: 10px auto; } +.container-no-bg { + max-width: 1000px; + min-width: 800px; + padding: 10px; + margin: 10px auto; +} + .flex-wrap-container .container { max-width: 800px; } diff --git a/themes/warwick_portfolio/layouts/index.html b/themes/warwick_portfolio/layouts/index.html index 3098061..aac2b9b 100644 --- a/themes/warwick_portfolio/layouts/index.html +++ b/themes/warwick_portfolio/layouts/index.html @@ -33,24 +33,26 @@ {{- end }} -
-

Blog

-
- {{- $pageLen := len (where .Site.RegularPages "Type" "blog") -}} - {{- range $i, $element := (where .Site.RegularPages "Type" "blog") }} - {{ .Render "summary" }} - {{- if lt $i (sub $pageLen 1) }}
{{ end -}} - {{- end }} -
+
+
+

Blog

+
+ {{- $pageLen := len (where .Site.RegularPages "Type" "blog") -}} + {{- range $i, $element := (where .Site.RegularPages "Type" "blog") }} + {{ .Render "summary" }} + {{- if lt $i (sub $pageLen 1) }}
{{ end -}} + {{- end }} +
-
-

Research Papers

-
- {{- $pageLen := len (where .Site.RegularPages "Type" "research papers") -}} - {{- range $i, $element := (where .Site.RegularPages "Type" "research papers") }} - {{ .Render "summary" }} - {{- if lt $i (sub $pageLen 1) }}
{{ end -}} - {{- end }} +
+

Research Papers

+
+ {{- $pageLen := len (where .Site.RegularPages "Type" "research papers") -}} + {{- range $i, $element := (where .Site.RegularPages "Type" "research papers") }} + {{ .Render "summary" }} + {{- if lt $i (sub $pageLen 1) }}
{{ end -}} + {{- end }} +