mirror of
https://github.com/apricote/apricote.de.git
synced 2026-01-13 20:51:02 +00:00
feat: remove outdated listory data
This commit is contained in:
parent
1e4140c3b3
commit
99dce54fcc
7 changed files with 0 additions and 201 deletions
|
|
@ -1,2 +0,0 @@
|
|||
<!-- If JS is available, this will be formated in a relative way, see layouts/partials/extend_head.html -->
|
||||
<span class="relative-date">{{ now.Format "2006-01-02T15:04:05Z" }}</span>
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
{{ $listoryApi := getenv "HUGO_LISTORY_HOST" }}{{ $listoryToken := getenv
|
||||
"HUGO_LISTORY_TOKEN" }} {{ $res := getJSON
|
||||
"https://listory.apricote.de/api/v1/reports/top-albums?timePreset=last_180_days"
|
||||
(dict "Authorization" (printf "Bearer %s" $listoryToken) ) }}
|
||||
|
||||
<ol>
|
||||
{{ range first 5 $res.items }}
|
||||
<li style="margin-bottom: 1em">
|
||||
<div style="display: flex">
|
||||
<div style="width: 80%">
|
||||
<span style="font-weight: 600;">{{ .album.name | title }}</span> - {{ range .album.artists }}<span style="font-size: 0.9em; padding-right: 0.2em"
|
||||
>{{.name}}</span
|
||||
>{{ end }}
|
||||
</div>
|
||||
<div style="width: 20%; text-align: right">
|
||||
{{ .count }}<img
|
||||
src="/listen.svg"
|
||||
alt="Listens"
|
||||
style="
|
||||
height: 1em;
|
||||
width: 1em;
|
||||
display: inline;
|
||||
margin: 0 0;
|
||||
margin-left: 0.2em;
|
||||
vertical-align: middle;
|
||||
"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div style="font-size: 0.9em"></div>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ol>
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
{{ $listoryApi := getenv "HUGO_LISTORY_HOST" }}{{ $listoryToken := getenv
|
||||
"HUGO_LISTORY_TOKEN" }} {{ $res := getJSON
|
||||
"https://listory.apricote.de/api/v1/reports/top-genres?timePreset=last_180_days"
|
||||
(dict "Authorization" (printf "Bearer %s" $listoryToken) ) }}
|
||||
|
||||
<ol>
|
||||
{{ range first 5 $res.items }}
|
||||
<li style="margin-bottom: 1em">
|
||||
<div style="display: flex">
|
||||
<div style="font-weight: 600; width: 80%">{{ .genre.name | title }}</div>
|
||||
<div style="width: 20%; text-align: right">
|
||||
{{ .count }}<img
|
||||
src="/listen.svg"
|
||||
alt="Listens"
|
||||
style="
|
||||
height: 1em;
|
||||
width: 1em;
|
||||
display: inline;
|
||||
margin: 0 0;
|
||||
margin-left: 0.2em;
|
||||
vertical-align: middle;
|
||||
"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div style="font-size: 0.9em">
|
||||
{{ range first 3 .artists }}<code alt="foobar">{{.artist.name}}</code> {{
|
||||
end }}
|
||||
</div>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ol>
|
||||
Loading…
Add table
Add a link
Reference in a new issue