This commit is contained in:
sakrecoer 2025-05-11 22:42:31 +02:00
parent 10d03af97c
commit e5a14bf82f
2 changed files with 21 additions and 2 deletions

View file

@ -1,11 +1,14 @@
{{ define "hero" }}
<section id="hero">
<h1> {{ .Title }}</h1>
</section>
{{ end }}
{{ define "main" }}
<section id="newsletter">
{{ partial "body/newsletter.html" . }}
</section>
{{ partial "body/gang.html" . }}
{{ end }}

View file

@ -1,3 +1,5 @@
<section id="gang">
{{/* prebuild/layouts/index.html */}}
{{ $url := "https://s.basspistol.org/api/pinned-users" }}
{{ $opts := dict
@ -8,7 +10,21 @@
{{ with resources.GetRemote $url $opts }}
{{ $monsters := unmarshal .Content }}
{{ range $monsters }}
I love {{ .username }} <br />
<article>
{{ if .url }}
<a href="{{ .url }}">
{{ else }}
<a href="https://s.basspistol.org/@{{ .username }}">
{{ end }}
<figure>
<figcaption>{{ .username }}</figcaption>
<img src="{{ .avatarUrl }}" />
</figure>
</a>
</article>
{{ end }}
{{ end }}
</section>