styling
This commit is contained in:
parent
10d03af97c
commit
e5a14bf82f
2 changed files with 21 additions and 2 deletions
|
|
@ -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 }}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue