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

github.com/varkai/hugo-theme-zozo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorimzeuk <imzeuk@gmail.com>2019-04-27 15:53:28 +0300
committerimzeuk <imzeuk@gmail.com>2019-04-27 15:53:28 +0300
commitcecd171fac7e5f1a9da1969f0ab34a0518db18a9 (patch)
tree34a2389f33bd6e122eb559729e05330c1b9a9ee2 /layouts
parent121374541dda725615c817db3b455d092d3c8bfc (diff)
update theme
Diffstat (limited to 'layouts')
-rw-r--r--layouts/shortcodes/img.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html
index c575cb9..5c60d27 100644
--- a/layouts/shortcodes/img.html
+++ b/layouts/shortcodes/img.html
@@ -1,7 +1,7 @@
{{ $path := .Get "src" }}
-{{ $caption := .Get "caption" }}
+{{ $caption := .Get "title" }}
<div class="fancybox">
-<a data-fancybox="gallery" href="{{ $path }}" data-caption="{{ $caption }}">
- <img src="{{ $path }}"/>
-</a>
+ <a data-fancybox="gallery" href="{{ $path | absURL }}" data-caption="{{ $caption }}">
+ <img src="{{ $path | absURL }}" />
+ </a>
</div>