fix: don't mutate shuffled arrays
This commit is contained in:
parent
a15a472721
commit
ff3f538171
4 changed files with 10 additions and 9 deletions
|
@ -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>
|
||||
|
|
Reference in a new issue