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

github.com/2-REC/hugo-myportfolio-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Severin <severinderek@gmail.com>2019-02-10 10:08:49 +0300
committerDerek Severin <severinderek@gmail.com>2019-02-10 10:08:49 +0300
commitf764775985b446655701ed740c116d598980cb77 (patch)
tree7aee8a77962ca164549fa6b2280e1aec9c5585c2 /layouts/_default/single.html
parent09da20da8cad89350be6179c284c17d8a1f84d6f (diff)
Image gallery: fixed directory check & added params in 'single.html' call to partial
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r--layouts/_default/single.html15
1 files changed, 4 insertions, 11 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 566fdf7..b4d3641 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -42,17 +42,10 @@
</ul>
{{ end }}
*/}}
-{{/*
-- "dir" .Params.images_directory
- => if not defined: "images"
-- "static" .Params.images_static
- => if not defined: N/A
-- "thumb" .Params.images_thumb_suffix
- => if not defined: N/A
-...
-*/}}
-{{ partial "gallery.html" (dict "page" . "dir" "images") }}
-{{ partial "load-photoswipe.html" (dict "page" .) }}
+ {{ $images_directory := .Params.images_directory | default "images" }}
+ {{ $images_static := .Params.images_static | default "false" }}
+ {{ partial "gallery.html" (dict "page" . "dir" $images_directory "static" $images_static) }}
+ {{ partial "load-photoswipe.html" (dict "page" .) }}
{{ end }}
{{ define "lists" }}