fix: property name

This commit is contained in:
Cory Dransfeldt 2024-05-11 12:21:43 -07:00
parent 525828019d
commit 2ecea9939b
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
{
"name": "coryd.dev",
"version": "14.1.2",
"version": "14.1.3",
"description": "The source for my personal site. Built using 11ty.",
"type": "module",
"scripts": {

View file

@ -103,9 +103,9 @@ export default async function() {
artists: aggregateData(recentData, 'artist_name', 'artists'),
albums: aggregateData(recentData, 'album_name', 'albums'),
tracks: aggregateData(recentData, 'track_name', 'track'),
trackChart: aggregateData(recentData, 'track_name', 'track', false),
tracksChronological: aggregateData(recentData, 'track_name', 'track', false),
}
results.nowPlaying = results.recent.trackChart[0]
results.nowPlaying = results.recent.tracksChronological[0]
return results
}

View file

@ -68,7 +68,7 @@ layout: default
</div>
</div>
<div id="tracks-recent">
{% render "partials/now/tracks-recent.liquid", data:music.recent.trackChart %}
{% render "partials/now/tracks-recent.liquid", data:music.recent.tracksChronological %}
</div>
<div class="hidden" id="tracks-window">
{% render "partials/now/track-chart.liquid", data:music.week.tracks, mostPlayed:music.week.tracks[0].plays %}