From 99dce54fcc1380352465209a44000f89c68858fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20T=C3=B6lle?= Date: Sun, 4 May 2025 03:12:18 +0200 Subject: [PATCH] feat: remove outdated listory data --- config.yaml | 5 -- content/listory.md | 18 ------- layouts/partials/extend_head.html | 43 ---------------- layouts/shortcodes/current-day.html | 2 - layouts/shortcodes/listory-albums.html | 33 ------------- layouts/shortcodes/listory-genres.html | 32 ------------ static/listen.svg | 68 -------------------------- 7 files changed, 201 deletions(-) delete mode 100644 content/listory.md delete mode 100644 layouts/partials/extend_head.html delete mode 100644 layouts/shortcodes/current-day.html delete mode 100644 layouts/shortcodes/listory-albums.html delete mode 100644 layouts/shortcodes/listory-genres.html delete mode 100644 static/listen.svg diff --git a/config.yaml b/config.yaml index 169877f..2a1e3c3 100644 --- a/config.yaml +++ b/config.yaml @@ -28,8 +28,6 @@ params: buttons: - name: "About Me" url: "about-me" - - name: "Favorite Music" - url: listory socialIcons: - name: github @@ -54,6 +52,3 @@ menu: - identifier: projects name: Projects url: projects - - identifier: listory - name: Favorite Music - url: listory diff --git a/content/listory.md b/content/listory.md deleted file mode 100644 index b9d4cb3..0000000 --- a/content/listory.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -title: "My Favorite Music" -type: listory ---- - -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 180 days prior to the last update time. - -## My favorite genres - -{{< listory-genres >}} - -## My favorite albums - -{{< listory-albums >}} diff --git a/layouts/partials/extend_head.html b/layouts/partials/extend_head.html deleted file mode 100644 index 577e910..0000000 --- a/layouts/partials/extend_head.html +++ /dev/null @@ -1,43 +0,0 @@ - diff --git a/layouts/shortcodes/current-day.html b/layouts/shortcodes/current-day.html deleted file mode 100644 index 739e1f8..0000000 --- a/layouts/shortcodes/current-day.html +++ /dev/null @@ -1,2 +0,0 @@ - -{{ now.Format "2006-01-02T15:04:05Z" }} diff --git a/layouts/shortcodes/listory-albums.html b/layouts/shortcodes/listory-albums.html deleted file mode 100644 index db12896..0000000 --- a/layouts/shortcodes/listory-albums.html +++ /dev/null @@ -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) ) }} - -
    - {{ range first 5 $res.items }} -
  1. -
    -
    - {{ .album.name | title }} - {{ range .album.artists }}{{.name}}{{ end }} -
    -
    - {{ .count }}Listens -
    -
    -
    -
  2. - {{ end }} -
diff --git a/layouts/shortcodes/listory-genres.html b/layouts/shortcodes/listory-genres.html deleted file mode 100644 index 44ede1d..0000000 --- a/layouts/shortcodes/listory-genres.html +++ /dev/null @@ -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) ) }} - -
    - {{ range first 5 $res.items }} -
  1. -
    -
    {{ .genre.name | title }}
    -
    - {{ .count }}Listens -
    -
    -
    - {{ range first 3 .artists }}{{.artist.name}} {{ - end }} -
    -
  2. - {{ end }} -
diff --git a/static/listen.svg b/static/listen.svg deleted file mode 100644 index 821b748..0000000 --- a/static/listen.svg +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - image/svg+xml - - - - - - - - -