From 2e2afbdd44edea7fb85a020d7a752c056a1246b8 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Fri, 25 Mar 2022 23:21:43 -0700 Subject: [PATCH] Move the p5 script includes to the bottom of the --- layouts/_default/baseof.html | 9 +++++++++ layouts/partials/head.html | 7 ------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 1204ae8..05d9c37 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -9,6 +9,15 @@ {{ partial "footer.html" . }} + + {{ if and .IsPage .Params.is_p5js_sketch }} + + " + {{ with .Resources.GetMatch "sketch.js" }} + " + {{ end }} + {{ end }} + {{ end }} - {{ if and .IsPage .Params.is_p5js_sketch }} - - {{ with .Resources.GetMatch "sketch.js" }} - " - {{ end }} - {{ end }} - {{ range $.Scratch.Get "social-list" }} {{ end }}