style this bitch
This commit is contained in:
parent
9907b0f273
commit
d56669dc01
3 changed files with 110 additions and 49 deletions
|
|
@ -1,30 +1,35 @@
|
|||
<section id="gang">
|
||||
<article class="section-headers">
|
||||
<h2>Gung</h2>
|
||||
<p>Ordinary people with extraordinary visions. <br />
|
||||
Powerful. Syndicated. Artists.</p>
|
||||
</article>
|
||||
|
||||
{{/* prebuild/layouts/index.html */}}
|
||||
{{ $url := "https://s.basspistol.org/api/pinned-users" }}
|
||||
{{ $opts := dict
|
||||
"method" "post"
|
||||
"body" `{"complete": true}`
|
||||
"headers" (dict "Content-Type" "application/json")
|
||||
}}
|
||||
{{ with resources.GetRemote $url $opts }}
|
||||
{{ $monsters := unmarshal .Content }}
|
||||
{{ range $monsters }}
|
||||
{{/* prebuild/layouts/index.html */}}
|
||||
{{ $url := "https://s.basspistol.org/api/pinned-users" }}
|
||||
{{ $opts := dict
|
||||
"method" "post"
|
||||
"body" `{"complete": true}`
|
||||
"headers" (dict "Content-Type" "application/json")
|
||||
}}
|
||||
{{ with resources.GetRemote $url $opts }}
|
||||
{{ $monsters := unmarshal .Content }}
|
||||
{{ range $monsters }}
|
||||
|
||||
<article>
|
||||
{{ if .url }}
|
||||
<a href="{{ .url }}">
|
||||
{{ else }}
|
||||
<a href="https://s.basspistol.org/@{{ .username }}">
|
||||
<article>
|
||||
{{ if .url }}
|
||||
<a href="{{ .url }}" target="_blank">
|
||||
{{ else }}
|
||||
<a href="https://s.basspistol.org/@{{ .username }}" target="_blank">
|
||||
{{ end }}
|
||||
<figure>
|
||||
<figcaption>{{ .username }}</figcaption>
|
||||
<img src="{{ .avatarUrl }}" />
|
||||
</figure>
|
||||
</a>
|
||||
</article>
|
||||
|
||||
{{ end }}
|
||||
{{ 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