Add People List

This uses XML due to the fact that XML can peserve order, however Go, therefore hugo, does not peserve XML element order while unmarashlling, meaning that there is a bug in Go techincally... This is dissapointing to me, however the result here is good enough that I will continue to use this.
This commit is contained in:
Evan G. 2024-05-23 14:06:46 -05:00
parent c393515499
commit 8db46ba527
6 changed files with 62 additions and 67 deletions

View File

@ -1,6 +0,0 @@
[
{
"Name": "Benjamin Hollon",
"Website": "benjaminhollon.com"
}
]

View File

@ -1,44 +1,8 @@
---
title: "A List of People"
date: 2024-05-22T20:21:36-05:00
draft: true
draft: false
tags:
- info
---
This is a list of people that I have collected over time:
1) Benjamin Hollon for his work on [readable.css](https://readable-css.freedomtowrite.org/) and his support on the fediverse.
* [Website](https://benjaminhollon.com/)
* Fediverse
* [@amin@alpha.polymaths.social](https://alpha.polymaths.social/@amin)
* [Codeberg](https://codeberg.org/benjaminhollon)
* [Github](https://github.com/benjaminbhollon) (Dead)
* [Other](https://benjaminhollon.com/social/)
* [Contact](https://benjaminhollon.com/contact/)
2) CJ for his work on [hugo-theme-readable](https://github.com/cjtheham/hugo-theme-readable/tree/main/layouts)
* [Website](https://ww0cj.radio/)
* Fediverse
* [@roguefoam@alpha.polymaths.social](https://alpha.polymaths.social/@roguefoam)
3) Sire for making me laugh
* Fediverse
* [@sire@alpha.polymaths.social](https://alpha.polymaths.social/@sire)
4) Tyil for teaching me a few things
* [Website](https://www.tyil.nl)
* [Fediverse](https://fedi.tyil.nl/@tyil)
5) R.L Dane for being around
* [Blog](https://rldane.space/)
* Fediverse
* [@RL_Dane@fosstodon.org](https://fosstodon.org/@RL_Dane)
8) Orbital Martian for being around
* [Blog](https://orbitalmartian.codeberg.page/)
* Fediverse
* [@orbitalmartian@alpha.polymaths.social](https://alpha.polymaths.social/@orbitalmartian)
9) Sotolf for being around
* Fediverse
* [@sotolf@alpha.polymaths.social](https://alpha.polymaths.social/@sotolf)
* [@sotolf@social.linux.pizza](https://social.linux.pizza/@sotolf)
10) Ivan for being around
* [Website](https://vmst.io/@libreivan)
* Fediverse
* [@libreivan@vmst.io](https://vmst.io/@libreivan)
* [@ivan@alpha.polymaths.social](https://alpha.polymaths.social/@ivan)
11) Krafter
{{<peoplelist >}}

View File

@ -1,8 +0,0 @@
---
title: "A List of People"
date: 2024-05-22T20:21:36-05:00
draft: true
tags:
- info
---
{{<peoplelist >}}

42
data/people.xml Normal file
View File

@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<people>
<person>
<name>Benjamin Hollon</name>
<why>For his work on [readable.css](https://readable-css.freedomtowrite.org/)</why>
<website>benjaminhollon.com</website>
<fediverse>[@amin@alpha.polymaths.social](https://alpha.polymaths.social/@amin)</fediverse>
<codeberg>[codeberg.org/benjaminhollon](https://codeberg.org/benjaminhollon)</codeberg>
<github>[Github](https://github.com/benjaminbhollon) (Dead)</github>
<social>[benjaminhollon.com/social](https://benjaminhollon.com/social/)</social>
<contact>[benjaminhollon.com/contact](https://benjaminhollon.com/contact)</contact>
</person>
<person>
<name>C.J</name>
<why>his work on [hugo-theme-readable](https://github.com/cjtheham/hugo-theme-readable/tree/main/layouts)</why>
<website>ww0cj.radio</website>
<fediverse>[@roguefoam@alpha.polymaths.social](https://alpha.polymaths.social)</fediverse>
</person>
<person>
<name>Sire</name>
<why>making me laugh</why>
<fediverse>[@sire@alpha.polymaths.social](@alpha.polymaths.social/@sire]</fediverse>
</person>
<person>
<name>Orbital Martian</name>
<why>Being cool</why>
<website>orbitalmartian.gitlab.io</website>
<fediverse>[@orbitalmartian@alpha.polymaths.social](https://alpha.polymaths.social/@orbitalmartian)</fediverse>
</person>
<person>
<name>Sotolf</name>
<fediverse>[@sotolf@alpha.polymaths.social](https://alpha.polymaths.social/@sotolf)</fediverse>
<fediverse2>[@sotolf@social.linux.pizza](https://social.linux.pizza/@sotolf)</fediverse2>
</person>
<person>
<name>Ivan</name>
<why>being cool</why>
<website>libreivan.com</website>
<fediverse>[@libreivan@vmst.io](https://vmst.io/@libreivan)</fediverse>
<fediverse2>[@ivan@alpha.polymaths.social](https://alpha.polymaths.social/@ivan)</fediverse2>
</person>
</people>

View File

@ -30,9 +30,15 @@ enableGitInfo= "true"
name = "About"
url = "/about/"
weight = 3
[[menu.main]]
identifier = "People"
name = "People"
url = "/people/"
weight = 4
[[menu.main]]
identifier = "tags"
name = "Tags"
url = "/tags/"
weight = 4
weight = 5

View File

@ -1,16 +1,13 @@
{{ $data := dict }}
{{ $path := "data/people.json" }}
{{ with resources.Get $path }}
{{ with . | transform.Unmarshal }}
{{ $data = . }}
{{ end }}
{{ else }}
{{ errorf "Unable to get global resource %q" $path }}
{{ end }}
{{ range $data }}
{{ .Name }}
{{ $data := site.Data.people }}
{{ range $data.person }}
{{ .name }} {{ with .why }} for {{ . | markdownify }} {{ end }}
<ul>
<li>{{ .Website }}<ul><li>
{{ with .website }} <li>Website: <a href="https://{{ . }}">{{ . }}</a></li> {{ end }}
{{ range $key, $value := . }}
{{ if eq $key "why" "name" "website" }}
{{ continue }}
{{ end }}
<li>{{ replaceRE "1" "$1" $key | humanize }}: {{ $value | markdownify }}</li>
{{ end }}
</ul>
{{ end }}