diff options
author | amzrk2 | 2020-07-07 21:40:03 +0800 |
---|---|---|
committer | amzrk2 | 2020-07-07 21:40:03 +0800 |
commit | 7da818e69b76ff6764157da75137de69feadb7ce (patch) | |
tree | 6a7c17804675f52cf6d68261f59da448020af8c6 /layouts/shortcodes/img-nz.html | |
parent | 39b230d730c44e9463c6c83ea7f81851a2048a5b (diff) | |
download | hugo-theme-fuji-7da818e69b76ff6764157da75137de69feadb7ce.tar.gz hugo-theme-fuji-7da818e69b76ff6764157da75137de69feadb7ce.tar.bz2 hugo-theme-fuji-7da818e69b76ff6764157da75137de69feadb7ce.zip |
Fix medium-zoom
Diffstat (limited to 'layouts/shortcodes/img-nz.html')
-rw-r--r-- | layouts/shortcodes/img-nz.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/layouts/shortcodes/img-nz.html b/layouts/shortcodes/img-nz.html new file mode 100644 index 0000000..30ea28a --- /dev/null +++ b/layouts/shortcodes/img-nz.html @@ -0,0 +1,7 @@ +{{ if (index .Params 2) }} +<a href="{{ index .Params 2 }}" target="_blank"> + <img src="{{ index .Params 1 }}" alt="{{ index .Params 0 }}" /> +</a> +{{ else }} +<img src="{{ index .Params 1 }}" alt="{{ index .Params 0 }}" /> +{{ end }} |