diff options
author | Victoria Drake <24644237+victoriadrake@users.noreply.github.com> | 2020-09-13 15:41:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-13 15:41:31 +0300 |
commit | 40f6ec70bfd5886ee7b7f6758f3b5ccd1db3f366 (patch) | |
tree | 3b41564537fa5c3fe3fe7fb77668e768d753e744 | |
parent | 96ecda27243f0470eaed88b0410b13750f656f53 (diff) | |
parent | 238317c3f5e0a4f091374bc13cee791430758e4d (diff) |
Merge pull request #91 from mfg92/upstream_like
Include photoswipe dependencies only if needed
-rw-r--r-- | layouts/partials/head/css.html | 4 |
1 files changed, 3 insertions, 1 deletions
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 }} <!-- PhotoSwipe --> +{{ if eq .Type "gallery" }} {{ $photoswipe := "css/photoswipe.css" }} <link rel="stylesheet" href="{{ $photoswipe | absURL }}"> {{ $defaultSkin := "css/default-skin.css" }} -<link rel="stylesheet" href="{{ $defaultSkin | absURL }}">
\ No newline at end of file +<link rel="stylesheet" href="{{ $defaultSkin | absURL }}"> +{{ end }}
\ No newline at end of file |