fix: don't mutate shuffled arrays

This commit is contained in:
Cory Dransfeldt 2024-10-12 16:39:49 -07:00
parent a15a472721
commit ff3f538171
No known key found for this signature in database
4 changed files with 10 additions and 9 deletions

View file

@ -6,7 +6,7 @@ permalink: "/watching/index.html"
updated: "now"
schema: watching
---
{% assign featuredMovie = movies.recentlyWatched | shuffleArray | first %}
{%- assign featuredMovie = movies.recentlyWatched | shuffleArray | first -%}
<h2 class="watching">{{ title }}</h2>
{% render "partials/media/watching/hero.liquid" movie:featuredMovie %}
<p>Here's all of the TV and movies I've been watching presented in what is (hopefully) an organized fashion.</p>