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

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/projects/single.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/layouts/projects/single.html b/layouts/projects/single.html
index 788cccd..98176e8 100644
--- a/layouts/projects/single.html
+++ b/layouts/projects/single.html
@@ -2,21 +2,21 @@
<div class="container markdown top-pad">
{{ with .Resources.ByType "image" }}
<div class="has-text-centered">
- {{ $moreThenOneImage := gt (len .) 1 }}
- {{ if $moreThenOneImage }}
+ {{ $moreThanOneImage := gt (len .) 1 }}
+ {{ if $moreThanOneImage }}
<div class="owl-carousel owl-theme">
{{ end }}
{{ range sort . "Params.weight" }}
{{ $image := .Resize "1000x" }}
- {{ if $moreThenOneImage }}
+ {{ if $moreThanOneImage }}
<div class="item owl-height">
{{ end }}
- <img src="{{ $image.Permalink }}" class="img-responsive" alt="{{ $image.Name }}">
- {{ if $moreThenOneImage }}
+ <img src="{{ $image.RelPermalink }}" class="img-responsive" alt="{{ $image.Name }}">
+ {{ if $moreThanOneImage }}
</div>
{{ end }}
{{ end }}
- {{ if $moreThenOneImage }}
+ {{ if $moreThanOneImage }}
</div>
{{ end }}
</div>