diff options
Diffstat (limited to 'layouts/shortcodes')
-rw-r--r-- | layouts/shortcodes/img.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html new file mode 100644 index 0000000..28c0918 --- /dev/null +++ b/layouts/shortcodes/img.html @@ -0,0 +1,7 @@ +{{ $path := .Get "src" }} +{{ $caption := .Get "caption"}} +<div class="fancybox"> +<a data-fancybox="gallery" href="{{ $path }}" data-caption="{{ $caption }}"> + <img src="{{ $path }}"/> +</a> +</div> |