From 4374c7f2800307f8d83b435803f659143a1dfbd9 Mon Sep 17 00:00:00 2001 From: Chewing_Bever Date: Thu, 6 Jun 2024 10:24:56 +0200 Subject: [PATCH] nicely render project links on section page --- content/dev/alex/_index.md | 4 ++++ content/dev/lander/_index.md | 4 ++++ content/dev/rieter/_index.md | 2 +- content/dev/vieter/_index.md | 8 ++++++++ themes/rb/assets/css/dark.css | 9 +++++++++ themes/rb/assets/css/main.css | 26 ++++++++++++++++++++++++++ themes/rb/layouts/_default/single.html | 2 ++ themes/rb/layouts/project/section.html | 2 ++ 8 files changed, 56 insertions(+), 1 deletion(-) diff --git a/content/dev/alex/_index.md b/content/dev/alex/_index.md index db9abe5..281da80 100644 --- a/content/dev/alex/_index.md +++ b/content/dev/alex/_index.md @@ -2,6 +2,10 @@ title: "Alex" summary: "Minecraft server wrapper that automates world backups" type: "project" +params: + links: + - name: Source + url: 'https://git.rustybever.be/Chewing_Bever/alex' --- diff --git a/content/dev/lander/_index.md b/content/dev/lander/_index.md index fda93ce..f204250 100644 --- a/content/dev/lander/_index.md +++ b/content/dev/lander/_index.md @@ -2,4 +2,8 @@ title: "Lander" summary: "URL shortener, pastebin & file-sharing service, built from the ground up in C" type: "project" +params: + links: + - name: Source + url: 'https://git.rustybever.be/Chewing_Bever/lander' --- diff --git a/content/dev/rieter/_index.md b/content/dev/rieter/_index.md index baf1c88..51bc379 100644 --- a/content/dev/rieter/_index.md +++ b/content/dev/rieter/_index.md @@ -4,7 +4,7 @@ summary: "Easy-to-use Pacman repository server designed for the self-hosting ent type: "project" params: links: - - name: Gitea + - name: Source url: 'https://git.rustybever.be/Chewing_Bever/rieter' --- diff --git a/content/dev/vieter/_index.md b/content/dev/vieter/_index.md index 223931a..1e48987 100644 --- a/content/dev/vieter/_index.md +++ b/content/dev/vieter/_index.md @@ -2,6 +2,14 @@ title: "Vieter" summary: "Arch Linux repository server & build system, written in V" type: "project" +params: + links: + - name: Source + url: 'https://git.rustybever.be/vieter-v/vieter' + - name: Docs + url: '/docs/vieter' + - name: API Docs + url: '/api-docs/vieter' --- lmao what diff --git a/themes/rb/assets/css/dark.css b/themes/rb/assets/css/dark.css index 8007b2f..3ea1dd8 100644 --- a/themes/rb/assets/css/dark.css +++ b/themes/rb/assets/css/dark.css @@ -21,6 +21,15 @@ header#banner nav ul li a { color: #cccccc; } +header#links a { + color: #e0e0e0; + text-decoration: none; +} + +header#links nav ul li a { + color: #00b1ed; +} + main#content a { color: #00b1ed; } diff --git a/themes/rb/assets/css/main.css b/themes/rb/assets/css/main.css index 7f77ce4..6b2598a 100644 --- a/themes/rb/assets/css/main.css +++ b/themes/rb/assets/css/main.css @@ -279,3 +279,29 @@ footer#footer { color: #b3b3b3; margin: 40px 0; } + +header#links { + display: inline-block; +} + +header#links nav { + display: inline-block; +} + +header#links nav ul { + list-style-type: none; + font-size: 1.05em; + text-transform: lowercase; + margin: 0; + padding: 0; +} + +header#links nav ul li { + display: inline; + margin: 0 3px; +} + +header#links nav ul li a { + color: #007dfa; + text-decoration: none; +} diff --git a/themes/rb/layouts/_default/single.html b/themes/rb/layouts/_default/single.html index 76fd585..2e025e7 100644 --- a/themes/rb/layouts/_default/single.html +++ b/themes/rb/layouts/_default/single.html @@ -2,9 +2,11 @@

{{ .Title }}

+ {{- if compare.Ne .Parent.Title "Home" -}}
Part of the {{ .Parent.Title }} series
+ {{- end -}} {{- if isset .Params "date" -}} {{ if eq .Lastmod .Date }} diff --git a/themes/rb/layouts/project/section.html b/themes/rb/layouts/project/section.html index 2b44d05..ccf5b7d 100644 --- a/themes/rb/layouts/project/section.html +++ b/themes/rb/layouts/project/section.html @@ -1,5 +1,6 @@ {{ define "main" }}

{{ .Title }}

+ {{ .Content }}