diff options
Diffstat (limited to 'layouts/shortcodes/img.html')
| -rw-r--r-- | layouts/shortcodes/img.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html new file mode 100644 index 0000000..58a6765 --- /dev/null +++ b/layouts/shortcodes/img.html @@ -0,0 +1,15 @@ +<figure class="center-img"> +<center> + <img + src="{{ .Get "src" }}" + alt="{{ .Get "alt" }}" + title="{{ .Get "title" }}" + > +</center> + + {{ with .Get "title" }} + <figcaption style="font-size:0.9em; opacity:0.7; margin-top:5px;"> + {{ . }} + </figcaption> + {{ end }} +</figure> |
