feat: show listory data from last half year

This commit is contained in:
Julian Tölle 2023-10-21 17:07:01 +02:00
parent 7d92a682de
commit 1f5a4e7340
3 changed files with 4 additions and 4 deletions

View file

@ -7,7 +7,7 @@ Last Update: {{< current-day >}}
The data on this page reflects my listens from Spotify. I track the data using a
self-hosted instance of [Listory](https://github.com/apricote/listory). All data
is coming from the listens of the 30 days prior to the last update time.
is coming from the listens of the 180 days prior to the last update time.
## My favorite genres

View file

@ -1,6 +1,6 @@
{{ $listoryApi := getenv "HUGO_LISTORY_HOST" }}{{ $listoryToken := getenv
"HUGO_LISTORY_TOKEN" }} {{ $res := getJSON
"https://listory.apricote.de/api/v1/reports/top-albums?timePreset=last_30_days"
"https://listory.apricote.de/api/v1/reports/top-albums?timePreset=last_180_days"
(dict "Authorization" (printf "Bearer %s" $listoryToken) ) }}
<ol>
@ -9,7 +9,7 @@
<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}}</code
>{{.name}}</span
>{{ end }}
</div>
<div style="width: 20%; text-align: right">

View file

@ -1,6 +1,6 @@
{{ $listoryApi := getenv "HUGO_LISTORY_HOST" }}{{ $listoryToken := getenv
"HUGO_LISTORY_TOKEN" }} {{ $res := getJSON
"https://listory.apricote.de/api/v1/reports/top-genres?timePreset=last_30_days"
"https://listory.apricote.de/api/v1/reports/top-genres?timePreset=last_180_days"
(dict "Authorization" (printf "Bearer %s" $listoryToken) ) }}
<ol>