fix: property name
This commit is contained in:
parent
525828019d
commit
2ecea9939b
3 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "coryd.dev",
|
"name": "coryd.dev",
|
||||||
"version": "14.1.2",
|
"version": "14.1.3",
|
||||||
"description": "The source for my personal site. Built using 11ty.",
|
"description": "The source for my personal site. Built using 11ty.",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -103,9 +103,9 @@ export default async function() {
|
||||||
artists: aggregateData(recentData, 'artist_name', 'artists'),
|
artists: aggregateData(recentData, 'artist_name', 'artists'),
|
||||||
albums: aggregateData(recentData, 'album_name', 'albums'),
|
albums: aggregateData(recentData, 'album_name', 'albums'),
|
||||||
tracks: aggregateData(recentData, 'track_name', 'track'),
|
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
|
return results
|
||||||
}
|
}
|
|
@ -68,7 +68,7 @@ layout: default
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="tracks-recent">
|
<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>
|
||||||
<div class="hidden" id="tracks-window">
|
<div class="hidden" id="tracks-window">
|
||||||
{% render "partials/now/track-chart.liquid", data:music.week.tracks, mostPlayed:music.week.tracks[0].plays %}
|
{% render "partials/now/track-chart.liquid", data:music.week.tracks, mostPlayed:music.week.tracks[0].plays %}
|
||||||
|
|
Reference in a new issue