diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html index 8c93effe..81bc8394 100644 --- a/layouts/shortcodes/figure.html +++ b/layouts/shortcodes/figure.html @@ -5,27 +5,6 @@ {{- if .Get "link" -}} {{- end }} - {{ with .Get + {{ partial "image.html" (merge .Params (dict "page" .Page "lazy" true)) }} {{- if .Get "link" }}{{ end -}} - {{- if or (or (.Get "title") (.Get "caption")) (.Get "attr") -}} -
- {{ with (.Get "title") -}} - {{ . }} - {{- end -}} - {{- if or (.Get "caption") (.Get "attr") -}}

- {{- .Get "caption" | markdownify -}} - {{- with .Get "attrlink" }} - - {{- end -}} - {{- .Get "attr" | markdownify -}} - {{- if .Get "attrlink" }}{{ end }}

- {{- end }} -
- {{- end }}