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 }}