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" }}
|
{{ define "hero" }}
|
||||||
|
<section id="hero">
|
||||||
<h1> {{ .Title }}</h1>
|
<h1> {{ .Title }}</h1>
|
||||||
|
</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
|
<section id="newsletter">
|
||||||
{{ partial "body/newsletter.html" . }}
|
{{ partial "body/newsletter.html" . }}
|
||||||
|
</section>
|
||||||
|
|
||||||
{{ partial "body/gang.html" . }}
|
{{ partial "body/gang.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
<section id="gang">
|
||||||
|
|
||||||
{{/* prebuild/layouts/index.html */}}
|
{{/* prebuild/layouts/index.html */}}
|
||||||
{{ $url := "https://s.basspistol.org/api/pinned-users" }}
|
{{ $url := "https://s.basspistol.org/api/pinned-users" }}
|
||||||
{{ $opts := dict
|
{{ $opts := dict
|
||||||
|
|
@ -8,7 +10,21 @@
|
||||||
{{ with resources.GetRemote $url $opts }}
|
{{ with resources.GetRemote $url $opts }}
|
||||||
{{ $monsters := unmarshal .Content }}
|
{{ $monsters := unmarshal .Content }}
|
||||||
{{ range $monsters }}
|
{{ 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 }}" />
|
<img src="{{ .avatarUrl }}" />
|
||||||
|
</figure>
|
||||||
|
</a>
|
||||||
|
</article>
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue