From 238317c3f5e0a4f091374bc13cee791430758e4d Mon Sep 17 00:00:00 2001 From: Mathias Grassmann Date: Sat, 12 Sep 2020 23:22:52 +0200 Subject: Include photoswipe dependencies only if needed --- layouts/partials/head/css.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/partials/head/css.html b/layouts/partials/head/css.html index 0b58d4d..cf5a301 100644 --- a/layouts/partials/head/css.html +++ b/layouts/partials/head/css.html @@ -18,7 +18,9 @@ {{- end }} +{{ if eq .Type "gallery" }} {{ $photoswipe := "css/photoswipe.css" }} {{ $defaultSkin := "css/default-skin.css" }} - \ No newline at end of file + +{{ end }} \ No newline at end of file -- cgit v1.2.3