diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html new file mode 100644 index 0000000..15181b6 --- /dev/null +++ b/layouts/_default/_markup/render-image.html @@ -0,0 +1,8 @@ +{{ if .Title }} + <figure> + <img src="{{ .Destination | safeURL }}" alt="{{ .Text }}"> + <figcaption>{{ .Title }}</figcaption> + </figure> +{{ else }} + <img src="{{ .Destination | safeURL }}" alt="{{ .Text }}"> +{{ end }} \ No newline at end of file