From 7a7258c520210bc18d8b5f9b6fc7ce1535d272d0 Mon Sep 17 00:00:00 2001 From: Warwick Date: Fri, 10 May 2024 13:45:21 +0100 Subject: [PATCH] First publishable version of the new site. --- config.yml | 1 + .../graphics-nothing-to-pbr.md | 0 .../playing-with-c-and-sockets.md | 2 +- ...tion-in-group-game-development-projects.md | 0 ...-during-group-game-development-projects.md | 0 themes/warwick_portfolio/assets/css/main.css | 27 ++++++++++++++----- .../layouts/_default/baseof.html | 18 +++++++------ themes/warwick_portfolio/layouts/index.html | 13 ++++++--- .../layouts/partials/footer.html | 3 +++ .../layouts/partials/header.html | 19 ++++++++++--- themes/warwick_portfolio/theme.toml | 2 +- 11 files changed, 60 insertions(+), 25 deletions(-) rename content/{posts => blog}/graphics-nothing-to-pbr.md (100%) rename content/{posts => blog}/playing-with-c-and-sockets.md (70%) rename content/{papers => research papers}/an-exploratory-analysis-of-student-experiences-with-peer-evaluation-in-group-game-development-projects.md (100%) rename content/{papers => research papers}/student-perspectives-on-the-purpose-of-peer-evaluation-during-group-game-development-projects.md (100%) diff --git a/config.yml b/config.yml index 80fe222..8c018a8 100644 --- a/config.yml +++ b/config.yml @@ -2,3 +2,4 @@ baseURL: https://warwicknew.co.uk languageCode: en-us title: Warwick New theme: warwick_portfolio +pluralizeListTitles: false diff --git a/content/posts/graphics-nothing-to-pbr.md b/content/blog/graphics-nothing-to-pbr.md similarity index 100% rename from content/posts/graphics-nothing-to-pbr.md rename to content/blog/graphics-nothing-to-pbr.md diff --git a/content/posts/playing-with-c-and-sockets.md b/content/blog/playing-with-c-and-sockets.md similarity index 70% rename from content/posts/playing-with-c-and-sockets.md rename to content/blog/playing-with-c-and-sockets.md index 8b566aa..b02cc01 100644 --- a/content/posts/playing-with-c-and-sockets.md +++ b/content/blog/playing-with-c-and-sockets.md @@ -3,6 +3,6 @@ title: "Playing With C and Sockets" date: 2023-11-07T15:19:57Z thumbnail: /thumbnails/c-socks.png draft: true -tags: ["draft", "c", "web-development", "Sockets"] +tags: ["c", "web-development", "Sockets"] --- diff --git a/content/papers/an-exploratory-analysis-of-student-experiences-with-peer-evaluation-in-group-game-development-projects.md b/content/research papers/an-exploratory-analysis-of-student-experiences-with-peer-evaluation-in-group-game-development-projects.md similarity index 100% rename from content/papers/an-exploratory-analysis-of-student-experiences-with-peer-evaluation-in-group-game-development-projects.md rename to content/research papers/an-exploratory-analysis-of-student-experiences-with-peer-evaluation-in-group-game-development-projects.md diff --git a/content/papers/student-perspectives-on-the-purpose-of-peer-evaluation-during-group-game-development-projects.md b/content/research papers/student-perspectives-on-the-purpose-of-peer-evaluation-during-group-game-development-projects.md similarity index 100% rename from content/papers/student-perspectives-on-the-purpose-of-peer-evaluation-during-group-game-development-projects.md rename to content/research papers/student-perspectives-on-the-purpose-of-peer-evaluation-during-group-game-development-projects.md diff --git a/themes/warwick_portfolio/assets/css/main.css b/themes/warwick_portfolio/assets/css/main.css index d25e1ed..1bf8a81 100644 --- a/themes/warwick_portfolio/assets/css/main.css +++ b/themes/warwick_portfolio/assets/css/main.css @@ -17,18 +17,12 @@ h5 {font-size: 1.333rem; /* 21.28px */} small {font-size: 0.750rem; /* 12px */} :root { - --text: #f5f3f0; - --background: #0a0803; - --primary: #ff930f; - --secondary: #6f613d; - --accent: #ad975f; - --paper: #050606; - --text: #b4bfc0; --background: #010202; --primary: #e3eff2; --secondary: #00bcd1; --accent: #8c240d; + --paper: #050606; } /* Custom CSS */ @@ -53,11 +47,30 @@ a:hover { color: var(--secondary); } +.header { + background-color: var(--paper); + padding: 1rem; +} + .homepage-header { background-color: var(--paper); padding: 2rem; } +footer { + bottom: 0; + left: 0; + right: 0; + padding: .5rem; + background: var(--paper); + color: var(--text); + font-weight: var(--text); + display: flex; + justify-content: center; + align-items: center; + gap: 0.2rem; +} + .flex-wrap-container { display: flex; align-items: flex-start; diff --git a/themes/warwick_portfolio/layouts/_default/baseof.html b/themes/warwick_portfolio/layouts/_default/baseof.html index 5f8e2ec..7cf72d8 100644 --- a/themes/warwick_portfolio/layouts/_default/baseof.html +++ b/themes/warwick_portfolio/layouts/_default/baseof.html @@ -1,11 +1,13 @@ - {{- partial "head.html" . -}} - - {{- partial "header.html" . -}} -
- {{- block "main" . }}{{- end }} -
- {{- partial "footer.html" . -}} - + {{- partial "head.html" . -}} + + {{ if ne .IsHome true }} + {{- partial "header.html" . -}} + {{ end }} +
+ {{- block "main" . }}{{- end }} +
+ {{- partial "footer.html" . -}} + diff --git a/themes/warwick_portfolio/layouts/index.html b/themes/warwick_portfolio/layouts/index.html index 32b2fc6..92ccc36 100644 --- a/themes/warwick_portfolio/layouts/index.html +++ b/themes/warwick_portfolio/layouts/index.html @@ -9,6 +9,11 @@

{{.Title}}

+ + {{ range .Site.Sections.Reverse }} +

{{ .Title }}

+ {{ end }} +
@@ -27,8 +32,8 @@

Blog


- {{- $pageLen := len (where .Site.RegularPages "Type" "posts") -}} - {{- range $i, $element := (where .Site.RegularPages "Type" "posts") }} + {{- $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 }} @@ -37,8 +42,8 @@

Research Papers


- {{- $pageLen := len (where .Site.RegularPages "Type" "papers") -}} - {{- range $i, $element := (where .Site.RegularPages "Type" "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 }} diff --git a/themes/warwick_portfolio/layouts/partials/footer.html b/themes/warwick_portfolio/layouts/partials/footer.html index e69de29..8c1beb9 100644 --- a/themes/warwick_portfolio/layouts/partials/footer.html +++ b/themes/warwick_portfolio/layouts/partials/footer.html @@ -0,0 +1,3 @@ +
+ © Warwick New. All rights reserved. 2020 - {{now.Year}} +
diff --git a/themes/warwick_portfolio/layouts/partials/header.html b/themes/warwick_portfolio/layouts/partials/header.html index 2086d94..2c50174 100644 --- a/themes/warwick_portfolio/layouts/partials/header.html +++ b/themes/warwick_portfolio/layouts/partials/header.html @@ -1,15 +1,26 @@ -
+