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:
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>