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:
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r--layouts/_default/single.html28
1 files changed, 9 insertions, 19 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 8b606f5..551431e 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,4 +1,5 @@
{{ define "content" }}
+
{{ $logos := .Resources.Match "logos/*" }}
{{ if gt (len $logos) 0 }}
<ul class="logos-list" aria-hidden="true">
@@ -6,7 +7,7 @@
{{ if eq .ResourceType "image" }}
{{ $image := .Fit "64x64" }}
<li>
- <figure>
+ <figure class="no-photoswipe">
<img class="logo" src="{{ $image.RelPermalink }}" alt="" title="{{ $image.Title }}">
</figure>
</li>
@@ -22,24 +23,13 @@
</div>
{{ end }}
- {{ $images := .Resources.Match "images/*" }}
- {{ if gt (len $images) 0 }}
- <ul class="images-list" aria-hidden="true">
- {{ range $images }}
- {{ if eq .ResourceType "image" }}
- {{ $image := .Resize "512x" }}
- <li>
- <figure>
- <img class="image" src="{{ $image.RelPermalink }}" alt="" title="{{ $image.Title }}">
- {{ with $image.Params.copyright }}
- <figcaption class="copyright">{{ . | markdownify }}</figcaption>
- {{ end }}
- </figure>
- </li>
- {{ end }}
- {{ end }}
- </ul>
- {{ end }}
+ {{ $images_directory := .Params.images_directory | default "images" }}
+ {{ $images_static := .Params.images_static | default "false" }}
+ {{ $images_copyright := .Params.images_copyright }}
+ {{ $images_params := .Params.images }}
+ {{ partial "gallery.html" (dict "page" . "dir" $images_directory "static" $images_static "images_params" $images_params "images_copyright" $images_copyright) }}
+ {{ partial "load-photoswipe.html" (dict "page" .) }}
+
{{ end }}
{{ define "lists" }}