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" title: "Alex"
summary: "Minecraft server wrapper that automates world backups" summary: "Minecraft server wrapper that automates world backups"
type: "project" type: "project"
params:
links:
- name: Source
url: 'https://git.rustybever.be/Chewing_Bever/alex'
--- ---

View File

@ -2,4 +2,8 @@
title: "Lander" title: "Lander"
summary: "URL shortener, pastebin & file-sharing service, built from the ground up in C" summary: "URL shortener, pastebin & file-sharing service, built from the ground up in C"
type: "project" 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" type: "project"
params: params:
links: links:
- name: Gitea - name: Source
url: 'https://git.rustybever.be/Chewing_Bever/rieter' url: 'https://git.rustybever.be/Chewing_Bever/rieter'
--- ---

View File

@ -2,6 +2,14 @@
title: "Vieter" title: "Vieter"
summary: "Arch Linux repository server & build system, written in V" summary: "Arch Linux repository server & build system, written in V"
type: "project" 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 lmao what

View File

@ -21,6 +21,15 @@ header#banner nav ul li a {
color: #cccccc; color: #cccccc;
} }
header#links a {
color: #e0e0e0;
text-decoration: none;
}
header#links nav ul li a {
color: #00b1ed;
}
main#content a { main#content a {
color: #00b1ed; color: #00b1ed;
} }

View File

@ -279,3 +279,29 @@ footer#footer {
color: #b3b3b3; color: #b3b3b3;
margin: 40px 0; 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> <article>
<header id="post-header"> <header id="post-header">
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
{{- if compare.Ne .Parent.Title "Home" -}}
<div> <div>
Part of the <a href="{{ .Parent.Permalink }}">{{ .Parent.Title }}</a> series Part of the <a href="{{ .Parent.Permalink }}">{{ .Parent.Title }}</a> series
</br> </br>
{{- end -}}
{{- if isset .Params "date" -}} {{- if isset .Params "date" -}}
{{ if eq .Lastmod .Date }} {{ if eq .Lastmod .Date }}
<time>{{ .Date | time.Format (i18n "post.created") }}</time> <time>{{ .Date | time.Format (i18n "post.created") }}</time>

View File

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