diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/shortcodes/img.html | 8 |
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> |