nicely render project links on section page

main
Jef Roosens 2024-06-06 10:24:56 +02:00
parent 323b9e2e3c
commit 4374c7f280
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
8 changed files with 56 additions and 1 deletions

View File

@ -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'
---

View File

@ -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'
---

View File

@ -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'
---

View File

@ -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

View File

@ -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;
}

View File

@ -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;
}

View File

@ -2,9 +2,11 @@
<article>
<header id="post-header">
<h1>{{ .Title }}</h1>
{{- if compare.Ne .Parent.Title "Home" -}}
<div>
Part of the <a href="{{ .Parent.Permalink }}">{{ .Parent.Title }}</a> series
</br>
{{- end -}}
{{- if isset .Params "date" -}}
{{ if eq .Lastmod .Date }}
<time>{{ .Date | time.Format (i18n "post.created") }}</time>

View File

@ -1,5 +1,6 @@
{{ define "main" }}
<h2>{{ .Title }}</h2>
<header id="links">
<nav>
<ul>
{{ range .Page.Params.links -}}
@ -9,6 +10,7 @@
{{- end }}
</ul>
</nav>
</header>
{{ .Content }}