Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/hivickylai/hugo-theme-sam.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/partials/head/css.html4
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