diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..27babca --- /dev/null +++ b/config.toml @@ -0,0 +1,16 @@ +baseURL = "https://warwicknew.co.uk" +languageCode = "en-us" +title = "Warwick New" +theme = "warwick_portfolio" +pluralizeListTitles = false + +[Author] +name = "Warwick New" +email = "wytau@sdf.org" + +[outputs] +home = ['html'] +section = ['html', 'rss'] +taxonomy = ['html'] +term = ['html'] + diff --git a/config.yml b/config.yml deleted file mode 100644 index 8c018a8..0000000 --- a/config.yml +++ /dev/null @@ -1,5 +0,0 @@ -baseURL: https://warwicknew.co.uk -languageCode: en-us -title: Warwick New -theme: warwick_portfolio -pluralizeListTitles: false diff --git a/content/blog/graphics-nothing-to-pbr.md b/content/blog/graphics-nothing-to-pbr.md index c976eca..3f6829a 100644 --- a/content/blog/graphics-nothing-to-pbr.md +++ b/content/blog/graphics-nothing-to-pbr.md @@ -2,7 +2,7 @@ title: "Graphics: Nothing to PBR" date: 2023-11-07T15:17:49Z thumbnail: /thumbnails/graphics.png -tags: ["c++", "opengl", "glsl","cmake", "3d maths","games"] +tags: ["c/c++", "opengl", "glsl","cmake", "3d maths","games"] --- I am someone who is fascinated by graphics programming, the creation of game engines and all things low-level. Here I've taken the time to create a proper graphics pipeline in order to create a PBR rendering system. I'll likely reuse the shaders and model loading classes in future projects but for my next personal graphics project I'm tempted to pick up some Vulkan and make greater use of namespaces and more modern general C++ programming paradigms to make something more robust to build on top of. diff --git a/content/blog/playing-with-c-and-sockets.md b/content/blog/playing-with-c-and-sockets.md index b02cc01..9e0eddc 100644 --- a/content/blog/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: ["c", "web-development", "Sockets"] +tags: ["c/c++", "web-development", "Sockets"] --- diff --git a/content/projects/university-graphics-project.md b/content/projects/university-graphics-project.md index e5f9922..ffb11a5 100644 --- a/content/projects/university-graphics-project.md +++ b/content/projects/university-graphics-project.md @@ -2,7 +2,7 @@ title: "University Graphics Project" date: 2023-10-25T11:56:20+01:00 thumbnail: /thumbnails/uni-graphics.png -tags: ["c++", "opengl", "glsl","cmake", "3d maths","games"] +tags: ["c/c++", "opengl", "glsl","cmake", "3d maths","games"] --- {{< video "/projects/videos/uni-graphics.mp4" >}} diff --git a/themes/warwick_portfolio/assets/img/rss.png b/themes/warwick_portfolio/assets/img/rss.png new file mode 100644 index 0000000..1486380 Binary files /dev/null and b/themes/warwick_portfolio/assets/img/rss.png differ diff --git a/themes/warwick_portfolio/layouts/_default/rss.xml b/themes/warwick_portfolio/layouts/_default/rss.xml new file mode 100644 index 0000000..5b6e4a3 --- /dev/null +++ b/themes/warwick_portfolio/layouts/_default/rss.xml @@ -0,0 +1,39 @@ +{{- $pctx := . -}} +{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} +{{- $pages := slice -}} +{{- if or $.IsHome $.IsSection -}} +{{- $pages = $pctx.RegularPages -}} +{{- else -}} +{{- $pages = $pctx.Pages -}} +{{- end -}} +{{- $limit := .Site.Config.Services.RSS.Limit -}} +{{- if ge $limit 1 -}} +{{- $pages = $pages | first $limit -}} +{{- end -}} +{{- printf "" | safeHTML }} + + + {{ if ne .Title .Site.Title }}{{ .Site.Title }}'s {{.Title}}{{ else }}{{ .Site.Title }}{{ end }} + {{ .Permalink }} + {{ if ne .Title .Site.Title }}{{ .Site.Title }}'s {{.Title}}{{ else }}{{ .Site.Title }}{{ end }} + Hugo -- gohugo.io{{ with .Site.LanguageCode }} + {{.}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} + {{.}}{{end}}{{ if not .Date.IsZero }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} + {{ with .OutputFormats.Get "RSS" }} + {{ printf "" .Permalink .MediaType | safeHTML }} + {{ end }} + {{ range $pages }} + + {{ .Title }} + {{ .Permalink }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{ .Permalink }} + {{ .Content | html }} + + {{ end }} + + diff --git a/themes/warwick_portfolio/layouts/index.html b/themes/warwick_portfolio/layouts/index.html index 92ccc36..3098061 100644 --- a/themes/warwick_portfolio/layouts/index.html +++ b/themes/warwick_portfolio/layouts/index.html @@ -11,9 +11,13 @@ {{ range .Site.Sections.Reverse }} -

{{ .Title }}

+

{{ .Title }}

{{ end }}
+ {{ $rss := (resources.Get "/img/rss.png").Resize "30x30" }} + + rss icon + diff --git a/themes/warwick_portfolio/layouts/partials/header.html b/themes/warwick_portfolio/layouts/partials/header.html index 2c50174..d3b626c 100644 --- a/themes/warwick_portfolio/layouts/partials/header.html +++ b/themes/warwick_portfolio/layouts/partials/header.html @@ -1,7 +1,8 @@ +{{ $logo := (resources.Get "/img/logo.png").Resize "100x100" }} +{{ $rss := (resources.Get "/img/rss.png").Resize "30x30" }}