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/shortcodes/img.html')
-rw-r--r--layouts/shortcodes/img.html7
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>