From 4ea15411e11ca2c10bb5d3b87173a15bd934a811 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 12 Dec 2021 18:31:50 +0000 Subject: [PATCH] Use scripts_extra to define lightgallery dependency --- layouts/_default/baseof.html | 4 ---- layouts/_default/flickr.html | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 7cd42f4..81cdef8 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -36,10 +36,6 @@ {{ partial "script.html" "js/jquery.min.js" }} - {{ if eq .Params.layout "flickr" }} - {{ partial "script_async.html" "js/lightgallery.min.js" }} - {{ end }} - {{ partial "script_async.html" "js/bootstrap.min.js" }} {{ partial "script_async.html" "js/app.js" }} diff --git a/layouts/_default/flickr.html b/layouts/_default/flickr.html index 50cc7bb..17e29e5 100644 --- a/layouts/_default/flickr.html +++ b/layouts/_default/flickr.html @@ -27,3 +27,7 @@ {{ partial "related-content.html" . }} {{ end }} + +{{ define "scripts_extra" }} + {{ partial "script_async.html" "js/lightgallery.min.js" }} +{{ end }}